diff options
author | Selvin Xavier <selvin.xavier@broadcom.com> | 2018-10-08 12:28:04 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-10-16 08:03:51 +0200 |
commit | 5df950994934814a8b91f0cf9f653842d2ba082d (patch) | |
tree | 9a9681458210283fb1f5c9a42ec339f76a3e77d5 /crypto/rsa-pkcs1pad.c | |
parent | RDMA/bnxt_re: Wait for delayed work to finish before device removal (diff) | |
download | linux-5df950994934814a8b91f0cf9f653842d2ba082d.tar.xz linux-5df950994934814a8b91f0cf9f653842d2ba082d.zip |
RDMA/bnxt_re: Avoid resource leak in case the NQ registration fails
In case the NQ alloc/enable fails, free up the already allocated/enabled
NQ before reporting failure. Also, track the alloc/enable using proper
state checking.
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'crypto/rsa-pkcs1pad.c')
0 files changed, 0 insertions, 0 deletions