i2c: Fix NULL pointer dereference in i2c_new_probed_device
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 10 Aug 2008 20:56:15 +0000 (22:56 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Sun, 10 Aug 2008 20:56:15 +0000 (22:56 +0200)
commitb25b791b13aaa336b56c4f9bd417ff126363f80b
treec19dd8eaaca361bd77b0324ccf736eac5159aa29
parent399d6b26539d83dd734746dc2292d53fbc5807b2
i2c: Fix NULL pointer dereference in i2c_new_probed_device

Fix a NULL pointer dereference that happened when calling
i2c_new_probed_device on one of the addresses for which we use byte
reads instead of quick write for detection purpose (that is: 0x30-0x37
and 0x50-0x5f).

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c