]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/i40iw: Fix potential use after free
authorPan Bian <bianpan2016@163.com>
Wed, 6 Nov 2019 06:44:11 +0000 (14:44 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 14 Nov 2019 15:47:18 +0000 (11:47 -0400)
commitc43ed2a07a9f2a6a53ec7dac03486d9d8633ffe0
treea3abcdfbea6a22d61796badbee0cedd593075d7d
parent6545b3c912641965cc5428eb9fcef94d7f2b6a4a
RDMA/i40iw: Fix potential use after free

Release variable dst after logging dst->error to avoid possible use after
free.

Link: https://lore.kernel.org/r/1573022651-37171-1-git-send-email-bianpan2016@163.com
Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c