linux-stable/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
..
audio.c
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
Kconfig
Makefile
midi.c staging/line6: blank line after declaration cleanup 2014-05-15 13:54:29 -07:00
midi.h
midibuf.c
midibuf.h
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
variax.c staging/line6: blank line after declaration cleanup 2014-05-15 13:54:29 -07:00
variax.h