Skip to content
Commit 7ecced09 authored by Kangjie Lu's avatar Kangjie Lu Committed by Bartosz Golaszewski
Browse files

gpio: exar: add a check for the return value of ida_simple_get fails



ida_simple_get may fail and return a negative error number.
The fix checks its return value; if it fails, go to err_destroy.

Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarKangjie Lu <kjlu@umn.edu>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent 9e98c678
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment