From: David Brownell Date: Mon, 14 Jul 2008 20:38:24 +0000 (+0200) Subject: i2c: i2c_use_client() defends against NULL X-Git-Tag: v2.6.27-rc1~1077^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ea438ec8da4ec56bf415f5ea360e6b0cb59c6c3;p=pandora-kernel.git 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 Signed-off-by: Jean Delvare --- Reading git-diff-tree failed