mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 04:10:51 +07:00
gpiolib: fix unwatch ioctl()
Fix the field having a bit cleared by the unwatch ioctl().
Fixes: 51c1064e82
("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>
This commit is contained in:
parent
df2cd58976
commit
48543bd8e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user