]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: memalloc: Catch call with NULL snd_dma_buffer pointer
authorTakashi Iwai <tiwai@suse.de>
Fri, 5 Nov 2021 10:21:03 +0000 (11:21 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 Nov 2021 10:27:10 +0000 (11:27 +0100)
commit588234a92177e119f5febb727b62fd08d985a4af
tree23a1486d87c34cf4e496c18f3f1009ba45fc8563
parentd214f05948e410344be3fa090fb7f6eec7014664
ALSA: memalloc: Catch call with NULL snd_dma_buffer pointer

Although we've covered all calls with NULL dma buffer pointer, so far,
there may be still some else in the wild.  For catching such a case
more easily, add a WARN_ON_ONCE() in snd_dma_get_ops().

Fixes: 5665d92abd1b ("ALSA: core: Abstract memory alloc helpers")
Link: https://lore.kernel.org/r/20211105102103.28148-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/memalloc.c