summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index d287cb4e97c4..4ed26bcf054c 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -628,6 +628,8 @@ static long lineevent_ioctl(struct file *filep, unsigned int cmd,
628 if (cmd == GPIOHANDLE_GET_LINE_VALUES_IOCTL) { 628 if (cmd == GPIOHANDLE_GET_LINE_VALUES_IOCTL) {
629 int val; 629 int val;
630 630
631 memset(&ghd, 0, sizeof(ghd));
632
631 val = gpiod_get_value_cansleep(le->desc); 633 val = gpiod_get_value_cansleep(le->desc);
632 if (val < 0) 634 if (val < 0)
633 return val; 635 return val;