diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-12-07 11:24:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-14 10:03:50 +0100 |
commit | ac75d92520d8954fc4ce3b44d29f25f5667ea634 (patch) | |
tree | 882776b072f74ba7b473c09e155fec0ee407eb3c /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 1b6cf577c63e683fde55761fde98c740fef9ed02 (diff) |
net/qla3xxx: fix an error code in ql_adapter_up()
commit d17b9737c2bc09b4ac6caf469826e5a7ce3ffab7 upstream.
The ql_wait_for_drvr_lock() fails and returns false, then this
function should return an error code instead of returning success.
The other problem is that the success path prints an error message
netdev_err(ndev, "Releasing driver lock\n"); Delete that and
re-order the code a little to make it more clear.
Fixes: 5a4faa873782 ("[PATCH] qla3xxx NIC driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211207082416.GA16110@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions