diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2013-08-16 23:48:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-20 13:27:28 -0700 |
commit | 18ebe5c1c63b46f1acc41f68af5d82d6b7b39d73 (patch) | |
tree | c35d67ceb9594d9de35eab88ac011aacc796fd1d /drivers/net/irda/nsc-ircc.c | |
parent | e5733321d5a94cc9a202ea85c4aabe09571217e6 (diff) |
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 <khoroshilov@ispras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/nsc-ircc.c')
0 files changed, 0 insertions, 0 deletions