From: Takashi Iwai Date: Thu, 1 Oct 2009 05:46:33 +0000 (+0200) Subject: ALSA: Don't assume i2c device probing always succeeds X-Git-Tag: v2.6.32-rc3~9^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18c4078489fe064cc0ed08be3381cf2f26657f5f;p=pandora-kernel.git ALSA: Don't assume i2c device probing always succeeds The client->driver pointer can be NULL when i2c-device probing fails in i2c_new_device(). This patch adds the NULL checks for client->driver and return the error instead of blind assumption of driver availability. Reported-by: Tim Shepard Cc: Jean Delvare Cc: Johannes Berg Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed