OSDN Git Service

ALSA: usx2y: Don't call free_pages_exact() with NULL address
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 May 2021 13:15:43 +0000 (15:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 May 2021 14:05:20 +0000 (16:05 +0200)
commitcae0cf651adccee2c3f376e78f30fbd788d0829f
tree175eda138fcd37e95977a1207bb7c16433b8c85b
parent64a06f195d3b2d65141b32c80d6b7f0db4df6cb5
ALSA: usx2y: Don't call free_pages_exact() with NULL address

Unlike some other functions, we can't pass NULL pointer to
free_pages_exact().  Add a proper NULL check for avoiding possible
Oops.

Link: https://lore.kernel.org/r/20210517131545.27252-10-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/usb_stream.c