]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iio: light: bh1780: return after write
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 28 Apr 2016 12:02:41 +0000 (14:02 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 4 May 2016 09:53:51 +0000 (10:53 +0100)
commit53dfc3b9e6c54d077f578f9016b6c8ab5f891e10
tree1b46775e0d7480f030ab86ce9b2d9a4a19879c11
parent04bf02175fe9577875fb8285cc2d08169fef613a
iio: light: bh1780: return after write

When writing a value using direct reg access from debugfs
we need to return and not fall through to reading the
value, lest we'll dereference a NULL pointer.

Cc: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/bh1780.c