kernel-aes67/sound/core
Mariusz Kozlowski 2469049e72 [ALSA] sound: snd_register_device_for_dev fix
snd_register_device_for_dev() can oops when device_create() returns
ERR_PTR(err).
Scenario:
preg->dev = device_create(...); /* fails */
if (preg->dev) /* contains ERR_PTR(err) */
	dev_set_drvdata(preg->dev, private_data);
and dev_set_drvdata() looks like this:
static inline void
dev_set_drvdata (struct device *dev, void *data)
{
	dev->driver_data = data; <--- boom
}
This patch should prevent that.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2007-10-16 16:51:06 +02:00
..
oss [ALSA] Add new AFMT_* formats for OSS emulation 2007-10-16 15:58:33 +02:00
seq [ALSA] schedule_timeout() fix for core/seq/seq_instr.c 2007-10-16 16:50:55 +02:00
control_compat.c
control.c [ALSA] unexport snd_ctl_elem_{read,write} 2007-10-16 16:49:19 +02:00
device.c
hwdep_compat.c
hwdep.c
info_oss.c
info.c
init.c
isadma.c
Kconfig
Makefile [ALSA] Clean up Makefile 2007-10-16 15:58:05 +02:00
memalloc.c [ALSA] Fix build error without CONFIG_HAS_DMA 2007-10-16 15:58:05 +02:00
memory.c
misc.c
pcm_compat.c
pcm_lib.c
pcm_memory.c
pcm_misc.c [ALSA] pcm: add snd_pcm_rate_to_rate_bit() helper 2007-10-16 15:58:54 +02:00
pcm_native.c [ALSA] pcm: merge rates[] from pcm_misc.c and pcm_native.c 2007-10-16 15:58:53 +02:00
pcm_timer.c
pcm.c
rawmidi_compat.c
rawmidi.c [ALSA] Clean up duplicate includes in sound/core/ 2007-10-16 15:03:19 +02:00
rtctimer.c [ALSA] is_power_of_2 in rtctimer.c 2007-05-11 16:55:42 +02:00
sgbuf.c
sound_oss.c
sound.c [ALSA] sound: snd_register_device_for_dev fix 2007-10-16 16:51:06 +02:00
timer_compat.c
timer.c [ALSA] timer: check for incorrect device state in non-debug compiles, too 2007-07-20 11:11:54 +02:00