]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: sh: Avoid passing NULL to memory allocators
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2019 13:27:17 +0000 (14:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Feb 2019 10:05:20 +0000 (11:05 +0100)
commit8f74ae398aa0b96207de366e9a723517e440e590
tree9bc4569912f0f26aef0cc6e6fa9ed0c76319afe1
parent18d33cdb0b30392dd8f0a3ebd224c3253d07ae47
ASoC: sh: 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>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/sh/siu_pcm.c