]> git.baikalelectronics.ru Git - kernel.git/commit
chtls: Added a check to avoid NULL pointer dereference
authorAyush Sawal <ayush.sawal@chelsio.com>
Wed, 6 Jan 2021 04:29:11 +0000 (09:59 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Jan 2021 01:06:02 +0000 (17:06 -0800)
commitf38ebcd46c4cc7da004ebaa15060da70765551c0
tree93b01c5cf2261ebe22f652ae2e554b0e9afb6c5c
parentac7e3fc4dc070e612d1f4e625a1a408d1ca6fd35
chtls: Added a check to avoid NULL pointer dereference

In case of server removal lookup_stid() may return NULL pointer, which
is used as listen_ctx. So added a check before accessing this pointer.

Fixes: d389a7c785e7 ("crypto : chtls - CPL handler definition")
Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c