Re: [PATCH] gpio: add a check for the return value of ida_simple_get fails

2019-03-11 Thread Bartosz Golaszewski
sob., 9 mar 2019 o 05:08 Kangjie Lu napisaƂ(a): > > ida_simple_get may fail and return a negative error number. > The fix checks its return value; if it fails, go to err_destroy. > > Signed-off-by: Kangjie Lu > --- > drivers/gpio/gpio-exar.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff

[PATCH] gpio: add a check for the return value of ida_simple_get fails

2019-03-08 Thread Kangjie Lu
ida_simple_get may fail and return a negative error number. The fix checks its return value; if it fails, go to err_destroy. Signed-off-by: Kangjie Lu --- drivers/gpio/gpio-exar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.c index