summaryrefslogtreecommitdiff
path: root/drivers/scsi/qedi/qedi_hsi.h
diff options
context:
space:
mode:
authorVinay Kumar Yadav <vinay.yadav@chelsio.com>2020-11-02 23:06:51 +0530
committerJakub Kicinski <kuba@kernel.org>2020-11-03 13:49:37 -0800
commit8080b462b6aa856ae05ea010441a702599e579f2 (patch)
tree8b00dfbd1ca5a68a9556ab72de96592bb49aba35 /drivers/scsi/qedi/qedi_hsi.h
parent5fd8477ed8ca77e64b93d44a6dae4aa70c191396 (diff)
chelsio/chtls: fix memory leaks caused by a race
race between user context and softirq causing memleak, consider the call sequence scenario chtls_setkey() //user context chtls_peer_close() chtls_abort_req_rss() chtls_setkey() //user context work request skb queued in chtls_setkey() won't be freed because resources are already cleaned for this connection, fix it by not queuing work request while socket is closing. v1->v2: - fix W=1 warning. v2->v3: - separate it out from another memleak fix. Fixes: cc35c88ae4db ("crypto : chtls - CPL handler definition") Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com> Link: https://lore.kernel.org/r/20201102173650.24754-1-vinay.yadav@chelsio.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/scsi/qedi/qedi_hsi.h')
0 files changed, 0 insertions, 0 deletions