Subject: fix build breakage in drivers/staging/iio/industrialio-core.c
authorGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:31:16 +0000 (16:31 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:31:16 +0000 (16:31 -0800)
This was introduced in commit b46413367961c2e8bd827e067a231be982aaeee2
(iio: fix a leak due to improper use of anon_inode_getfd())

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-core.c

index ee5e0640aa29b9a5a8f9dbca27b78951bb89e31d..f5c111cb1dba43310424857638d1fa1d6ea10dee 100644 (file)
@@ -261,7 +261,7 @@ static int iio_event_getfd(struct iio_dev *indio_dev)
                                indio_dev->event_interface, O_RDONLY);
        if (fd < 0) {
                mutex_lock(&indio_dev->event_interface->event_list_lock);
-               clear_bit(IIO_BUSY_BIT_POS, &ev_int->flags);
+               clear_bit(IIO_BUSY_BIT_POS, &indio_dev->event_interface->flags);
                mutex_unlock(&indio_dev->event_interface->event_list_lock);
        }
        return fd;