]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/iw_cxgb4: Avoid touch after free error in ARP failure handlers
authorRaju Rangoju <rajur@chelsio.com>
Mon, 15 May 2017 06:40:39 +0000 (06:40 +0000)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Jun 2017 21:01:28 +0000 (17:01 -0400)
commit2db861c8caa941ff3d7f054636d9f415f9992010
treef3567965cb92ae062852fe025bd32c338d7588f6
parent14ddc5e09923a43370740723b5cf855c50646cba
RDMA/iw_cxgb4: Avoid touch after free error in ARP failure handlers

The patch 668c1f7b7037 (RDMA/iw_cxgb4: Handle return value of
c4iw_ofld_send() in abort_arp_failure()) from May 6, 2016
leads to the following static checker warning:
drivers/infiniband/hw/cxgb4/cm.c:575 abort_arp_failure()
warn: passing freed memory 'skb'

Also fixes skb leak when l2t resolution fails

Fixes: 668c1f7b70375f9 (RDMA/iw_cxgb4: Handle return value of
c4iw_ofld_send() in abort_arp_failure())
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Raju Rangoju <rajur@chelsio.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb4/cm.c