]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: amd: Avoid passing NULL to memory allocators
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2019 13:27:01 +0000 (14:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Feb 2019 10:04:57 +0000 (11:04 +0100)
commit8e83089b4c4f4146f36f6f85a56f278853388c9d
tree80d06d03cdda8d0e9bfd9b83f0245e047b3aeeb1
parente2e5c96ee511d90e97080f5a7c6928dceb68aeb6
ASoC: amd: 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/amd/raven/acp3x-pcm-dma.c