Skip to content

Commit

Permalink
gpiolib: fix unwatch ioctl()
Browse files Browse the repository at this point in the history
Fix the field having a bit cleared by the unwatch ioctl().

Fixes: 51c1064 ("gpiolib: add new ioctl() for monitoring changes in line info")
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
  • Loading branch information
Kent Gibson authored and Bartosz Golaszewski committed Mar 2, 2020
1 parent df2cd58 commit 48543bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ static long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if (IS_ERR(desc))
return PTR_ERR(desc);

clear_bit(desc_to_gpio(desc), &desc->flags);
clear_bit(desc_to_gpio(desc), priv->watched_lines);
return 0;
}
return -EINVAL;
Expand Down

0 comments on commit 48543bd

Please sign in to comment.