]> git.baikalelectronics.ru Git - kernel.git/commit
IB/IWPM: Fix a potential skb leak
authorMark Bloch <markb@mellanox.com>
Fri, 6 May 2016 19:45:24 +0000 (22:45 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:40:01 +0000 (19:40 -0400)
commit44047425aff080ea546e0adfaa36ac5f5b452719
tree41d4437ccd146a6a585982c9cd1f323ef2fb7df0
parent5f828748ca5d684eb16ab0cc11e392192b100314
IB/IWPM: Fix a potential skb leak

In case ibnl_put_msg fails in send_nlmsg_done,
the function returns with -ENOMEM without freeing.

This patch fixes this behavior.

Fixes: 6b55c5a63911 ("RDMA/core: Add support for iWARP Port Mapper user space service")
Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/iwpm_util.c