From: Alexey Khoroshilov Date: Tue, 10 Jun 2014 20:22:50 +0000 (+0400) Subject: staging: line6: do not return 0 from probe if no initialization done X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1704 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7f268df3f4e80513271aea8e91f3fd0701aae1b;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed