]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: gp2ap020a00f: Fix possible error swallow
authorEthan Tidmore <ethantidmore06@gmail.com>
Mon, 23 Feb 2026 03:40:15 +0000 (21:40 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 21:15:54 +0000 (21:15 +0000)
commit550f5c010465b6bf735264cd11d27e1f258508b1
tree2c99a7a26b023220676be67f653956bd39be5047
parentf6d460ec01556d8c5871a0abbb5baa31f8b0d630
iio: light: gp2ap020a00f: Fix possible error swallow

Move error check into for loop in gp2ap020a00f_buffer_postenable() and
gp2ap020a00f_buffer_predisable(), this fixes a possible error swallow.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/gp2ap020a00f.c