diff options
author | 2013-08-16 23:48:14 +0300 | |
---|---|---|
committer | 2013-08-20 13:27:28 -0700 | |
commit | 18ebe5c1c63b46f1acc41f68af5d82d6b7b39d73 (patch) | |
tree | c35d67ceb9594d9de35eab88ac011aacc796fd1d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | macvtap: Ignore tap features when VNET_HDR is off (diff) | |
download | linux-dev-18ebe5c1c63b46f1acc41f68af5d82d6b7b39d73.tar.xz linux-dev-18ebe5c1c63b46f1acc41f68af5d82d6b7b39d73.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions