Skip to content
Commit cb68429d authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Takashi Iwai
Browse files

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: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5cf92c8b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment