]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/iw_cxgb4: Avoid freeing skb twice in arp failure case
authorPotnuri Bharat Teja <bharat@chelsio.com>
Fri, 25 Oct 2019 12:34:40 +0000 (18:04 +0530)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 28 Oct 2019 17:13:33 +0000 (14:13 -0300)
commit3d8c469c71ea497a1bce73acf5bf4d06efdc53f8
treefee8011fc1774f0e987e1c1a4b240899406f0f2b
parent89beac0ec003573391451bee2a6047aa96fdf433
RDMA/iw_cxgb4: Avoid freeing skb twice in arp failure case

_put_ep_safe() and _put_pass_ep_safe() free the skb before it is freed by
process_work(). fix double free by freeing the skb only in process_work().

Fixes: adea8d3ecaf5 ("iw_cxgb4: Avoid touch after free error in ARP failure handlers")
Link: https://lore.kernel.org/r/1572006880-5800-1-git-send-email-bharat@chelsio.com
Signed-off-by: Dakshaja Uppalapati <dakshaja@chelsio.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/cm.c