]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: echoaudio: add a check for ioremap_nocache
authorKangjie Lu <kjlu@umn.edu>
Fri, 15 Mar 2019 03:58:29 +0000 (22:58 -0500)
committerTakashi Iwai <tiwai@suse.de>
Sat, 16 Mar 2019 09:29:02 +0000 (10:29 +0100)
commit9d012a650214bd46f82830ca8fb4458f9aa248ea
tree563848112b08ad5b76c4f70b46cc3fe9af1ad936
parentc07220c3856ec32ccc91ae74f7416877abadb868
ALSA: echoaudio: add a check for ioremap_nocache

In case ioremap_nocache fails, the fix releases chip and returns
an error code upstream to avoid NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/echoaudio/echoaudio.c