diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-05-07 09:42:52 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-22 09:33:04 +0200 |
commit | 653c402a61d0ddbe39406749244a2dfd86f978e9 (patch) | |
tree | 000ad3b9ae61bd0bca092e37ac2d713fb6beecee /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 28975d689d47d1f0c7d1e3ec632b62f866f0d3c3 (diff) |
gnss: sirf: fix error return code in sirf_probe()
commit 43d7ce70ae43dd8523754b17f567417e0e75dbce upstream.
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
This avoids a use-after-free in case the driver is later unbound.
Fixes: d2efbbd18b1e ("gnss: add driver for sirfstar-based receivers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
[ johan: amend commit message; mention potential use-after-free ]
Cc: stable <stable@vger.kernel.org> # 4.19
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions