IB/rxe: double free on error
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Mar 2017 05:21:52 +0000 (08:21 +0300)
committerDoug Ledford <dledford@redhat.com>
Sat, 25 Mar 2017 00:53:32 +0000 (20:53 -0400)
commitded260235308f340b979258a4c736e06ba12c747
tree28cb866046d55a9c669174d75fbc27ff94e90429
parentb172679b0d3b93a6197b2ff892794e7178e3c448
IB/rxe: double free on error

"goto err;" has it's own kfree_skb() call so it's a double free.  We
only need to free on the "goto exit;" path.

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_req.c