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> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| audio.c | ||
| audio.h | ||
| capture.c | ||
| capture.h | ||
| driver.c | ||
| driver.h | ||
| midi.c | ||
| midi.h | ||
| midibuf.c | ||
| midibuf.h | ||
| pcm.c | ||
| pcm.h | ||
| playback.c | ||
| playback.h | ||
| pod.c | ||
| pod.h | ||
| podhd.c | ||
| podhd.h | ||
| revision.h | ||
| toneport.c | ||
| toneport.h | ||
| usbdefs.h | ||
| variax.c | ||
| variax.h | ||