]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: x86: Avoid passing NULL to memory allocators
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2019 13:24:52 +0000 (14:24 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2019 15:51:34 +0000 (16:51 +0100)
commitc7c3fec8a524774dbd1daf7841df1217dd589298
tree9764071ea192f17f849ab985b5df784955ae7b56
parent0b6a2c9cf4a00f54a0916499ece8a5cf3cced385
ALSA: x86: Avoid passing NULL to memory allocators

We should pass a proper non-NULL device object to memory allocators
although it was accepted in the past.  The card->dev points to the
most appropriate device object in such a case, so let's put it.

Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c