diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-10-01 07:46:33 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-10-01 07:46:33 +0200 |
commit | 18c4078489fe064cc0ed08be3381cf2f26657f5f (patch) | |
tree | 72d5534c800da85393209a39d335af2d5606c695 /sound/ppc/pmac.c | |
parent | ALSA: intel8x0 - Mute External Amplifier by default for Sony VAIO VGN-T350P (diff) | |
download | linux-18c4078489fe064cc0ed08be3381cf2f26657f5f.tar.xz linux-18c4078489fe064cc0ed08be3381cf2f26657f5f.zip |
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 <shep@alum.mit.edu>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/ppc/pmac.c')
0 files changed, 0 insertions, 0 deletions