]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Don't assume non-NULL PCM ops
authorTakashi Iwai <tiwai@suse.de>
Fri, 27 Feb 2015 16:57:55 +0000 (17:57 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 3 Mar 2015 10:26:27 +0000 (11:26 +0100)
commit443d09eca0fe6c47d3e3850c79c6a9aacf1171da
treefb8dc9b71ec90beeb1f5bae529e6c54ca8189709
parentcd6a31e1925e9803c178b1bff345d3544abd72c4
ALSA: hda - Don't assume non-NULL PCM ops

The PCM ops might be set NULL, or cleared to NULL when the driver is
unbound.  Give a proper NULL check at each place to be more robust.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_controller.c