OpenCloudOS-Kernel/drivers/staging/line6
Alexey Khoroshilov c7f268df3f staging: line6: do not return 0 from probe if no initialization done
There is a strange "return 0" in line6_probe() before any initialization of
the module is done. It can lead to NULL pointer dereference in other functions.
The patch proposes to return -ENODEV in this case.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-19 17:12:01 -07:00
..
Kconfig staging: line6: drop CONFIG_LINE6_USB_DUMP_PCM 2013-01-20 15:56:59 -08:00
Makefile
audio.c staging/line6: Convert to snd_card_new() with a device pointer 2014-02-14 08:14:10 +01:00
audio.h
capture.c staging/line6: blank line after declaration cleanup 2014-05-15 13:54:29 -07:00
capture.h
driver.c staging: line6: do not return 0 from probe if no initialization done 2014-06-19 17:12:01 -07:00
driver.h Staging: line6: Fix unnecessary space after function pointer in driver.h 2014-02-27 15:15:58 -08:00
midi.c staging/line6: blank line after declaration cleanup 2014-05-15 13:54:29 -07:00
midi.h staging: line6: rename MidiBuffer to avoid CamelCase 2013-01-11 16:40:50 -08:00
midibuf.c staging: line6: rename MidiBuffer to avoid CamelCase 2013-01-11 16:40:50 -08:00
midibuf.h staging: line6: rename MidiBuffer to avoid CamelCase 2013-01-11 16:40:50 -08:00
pcm.c staging/line6: Fix kzalloc coding style issue 2014-04-16 20:30:04 -07:00
pcm.h
playback.c staging/line6: blank line after declaration cleanup 2014-05-15 13:54:29 -07:00
playback.h
pod.c staging/line6: blank line after declaration cleanup 2014-05-15 13:54:29 -07:00
pod.h
podhd.c
podhd.h
revision.h
toneport.c staging/line6: blank line after declaration cleanup 2014-05-15 13:54:29 -07:00
toneport.h
usbdefs.h staging: line6: long line fixes 2014-03-17 12:08:42 -07:00
variax.c staging/line6: blank line after declaration cleanup 2014-05-15 13:54:29 -07:00
variax.h