ALSA: core: fix NULL checking in snd_pcm_plug_client_size()
authorXi Wang <xi.wang@gmail.com>
Tue, 13 Nov 2012 22:12:11 +0000 (17:12 -0500)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Nov 2012 07:03:27 +0000 (08:03 +0100)
commit9af4e7fedab490fec6e831912859d6be92e9140d
treece8f13d7939d964dd7739c35af3af2d917cf3290
parent1762a59d8e8b5e99f6f4a0f292b40f3cacb108ba
ALSA: core: fix NULL checking in snd_pcm_plug_client_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