summaryrefslogtreecommitdiff
path: root/drivers/virtio
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2023-02-14 18:43:38 +0300
committerLeon Romanovsky <leon@kernel.org>2023-02-15 13:37:37 +0200
commit4ca446b127c568b59cb8d9748b6f70499624bb18 (patch)
treed99774659c0568d02b7431a67d771b8c31002427 /drivers/virtio
parent50a542a8accc12afd802488f95317155496692f1 (diff)
iw_cxgb4: Fix potential NULL dereference in c4iw_fill_res_cm_id_entry()
This condition needs to match the previous "if (epcp->state == LISTEN) {" exactly to avoid a NULL dereference of either "listen_ep" or "ep". The problem is that "epcp" has been re-assigned so just testing "if (epcp->state == LISTEN) {" a second time is not sufficient. Fixes: 116aeb887371 ("iw_cxgb4: provide detailed provider-specific CM_ID information") Signed-off-by: Dan Carpenter <error27@gmail.com> Link: https://lore.kernel.org/r/Y+usKuWIKr4dimZh@kili Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions