summaryrefslogtreecommitdiff
path: root/io_uring/kbuf.h
diff options
context:
space:
mode:
authorNuno Sa <nuno.sa@analog.com>2024-09-20 09:22:52 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-09-20 01:21:56 -0700
commiteb017f4ea13b1a5ad7f4332279f2e4c67b44bdea (patch)
tree205ee225611ee6388aab2ea0b4b95545d2f58eed /io_uring/kbuf.h
parent3870e2850b56306d1d1e435c5a1ccbccd7c59291 (diff)
Input: adp5588-keys - fix check on return code
During adp5588_setup(), we read all the events to clear the event FIFO. However, adp5588_read() just calls i2c_smbus_read_byte_data() which returns the byte read in case everything goes well. Hence, we need to explicitly check for a negative error code instead of checking for something different than 0. Fixes: e960309ce318 ("Input: adp5588-keys - bail out on returned error") Cc: stable@vger.kernel.org Signed-off-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20240920-fix-adp5588-err-check-v1-1-81f6e957ef24@analog.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'io_uring/kbuf.h')
0 files changed, 0 insertions, 0 deletions