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)
commit61ca4107a16828559e2463e49b87002990da0b98
treefb8dc9b71ec90beeb1f5bae529e6c54ca8189709
parentbbbc7e8502c95237dbd86cc4d0a12ca9a6b18c8f
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