]> git.baikalelectronics.ru Git - kernel.git/commit
sound: fix check for error condition of register_chrdev()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 6 Nov 2015 22:56:05 +0000 (01:56 +0300)
committerTakashi Iwai <tiwai@suse.de>
Sat, 7 Nov 2015 10:14:30 +0000 (11:14 +0100)
commitac0df21d00519a27a5b156cf3ce101bf1c397f64
tree906caa97e530348ca4edcf0efb3a3606327695c8
parent50a37b8a6b45a934957c36b874a3d594c48ab3b2
sound: fix check for error condition of register_chrdev()

init_oss_soundcore() compares returned value of register_chrdev()
with -1, while other error codes can be returned.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/sound_core.c