]> err.no Git - linux-2.6/commit
i2c: i2c_use_client() defends against NULL
authorDavid Brownell <david-b@pacbell.net>
Mon, 14 Jul 2008 20:38:24 +0000 (22:38 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Mon, 14 Jul 2008 20:38:24 +0000 (22:38 +0200)
commit6ea438ec8da4ec56bf415f5ea360e6b0cb59c6c3
treebfaca562cfa95e71f7e7efe44d67f245d59b32f6
parenta1cdedac634eef81f747078bf1c27ad36ab13553
i2c: i2c_use_client() defends against NULL

Defend the i2c refcount calls against NULL pointers, as is important
(and conventional) for such calls.  Note that none of the current
callers of i2c_use_client() use its return value.

[JD: I hate this but apparently all the other subsystems do it so...]

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c