Files
linux/drivers/net/irda
Alexey Khoroshilov 18ebe5c1c6 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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2013-08-20 13:27:28 -07:00
..
…
2012-04-25 14:48:49 -07:00
2013-01-15 22:23:16 -08:00
…
…
2012-11-20 15:51:55 -05:00
…
2012-04-25 14:48:51 -07:00
…