]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc81147b2826ef36368945528a5d6ff38bfda100
tree28cb866046d55a9c669174d75fbc27ff94e90429
parent263d6359e9228ec08fb917d3bc93835adbd59d32
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: 5deaf88696f1 ("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