ALSA: core: fix NULL checking in snd_pcm_plug_slave_size()
authorXi Wang <xi.wang@gmail.com>
Tue, 13 Nov 2012 22:12:12 +0000 (17:12 -0500)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Nov 2012 07:03:31 +0000 (08:03 +0100)
commit701ef3205eb33bce4ba97b96f6f04a5ae29cd7b8
treebc6c90b94fea09e46f402070f2718141ed23734e
parent9af4e7fedab490fec6e831912859d6be92e9140d
ALSA: core: fix NULL checking in snd_pcm_plug_slave_size()

The dereference snd_pcm_plug_stream(plug) should come after the NULL
check snd_BUG_ON(!plug).

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/pcm_plugin.c