From: Alexey Khoroshilov Date: Fri, 16 Aug 2013 20:48:14 +0000 (+0300) Subject: via-ircc: don't return zero if via_ircc_open() failed X-Git-Tag: v3.11-rc7~11^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18ebe5c1c63b46f1acc41f68af5d82d6b7b39d73;p=pandora-kernel.git via-ircc: don't return zero if via_ircc_open() failed If via_ircc_open() fails, data structures of the driver left uninitialized, but probe (via_init_one()) returns zero. That can lead to null pointer dereference in via_remove_one(), since it does not check drvdata for NULL. The patch implements proper error code propagation. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: David S. Miller --- Reading git-diff-tree failed