]> git.baikalelectronics.ru Git - kernel.git/commit
misc/ics932s401: Add a missing check to i2c_smbus_read_word_data
authorAditya Pakki <pakki001@umn.edu>
Mon, 24 Dec 2018 17:31:13 +0000 (11:31 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 15:34:06 +0000 (16:34 +0100)
commitc1bbaebda0da81193c4fef7141e621c0b07f679d
tree0a112aa7bf0a5255e37488886cfb4717c96afe85
parente7276bd9257c425bd79b444e1f3978cd98394f26
misc/ics932s401: Add a missing check to i2c_smbus_read_word_data

ics932s401_update_device may fail reading in i2c_smbus_read_word_data
due to error in i2c_smbus_xfer. The fix checks the status and defaults
the register to 0.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ics932s401.c