ALSA: core: Don't allow NULL device for memory allocation
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2019 13:34:00 +0000 (14:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Feb 2019 10:05:26 +0000 (11:05 +0100)
commit6ce1d63ed7210e7120070297976460f868c36314
treed5759f217a1e21bfe555e8f609dd54bacc1ab1b4
parent8f74ae398aa0b96207de366e9a723517e440e590
ALSA: core: Don't allow NULL device for memory allocation

Since we covered all callers with NULL device pointer, let's catch the
remaining calls with NULL and warn explicitly.

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