diff options
| author | Zhu Yanjun <[email protected]> | 2018-06-07 06:32:52 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-06-11 17:02:27 +0000 |
| commit | 828d810550abc1fffff9b20545fec4bc150d5e82 (patch) | |
| tree | 63af46473c30b6c01fa7b565d44c176ed62a315e /drivers/i2c/algos/i2c-algo-bit.c | |
| parent | RDMA/mlx5: Update SPDX tags to show proper license (diff) | |
| download | kernel-828d810550abc1fffff9b20545fec4bc150d5e82.tar.gz kernel-828d810550abc1fffff9b20545fec4bc150d5e82.zip | |
IB/rxe: avoid double kfree skb
In rxe_send, when network_type is not RDMA_NETWORK_IPV4 or
RDMA_NETWORK_IPV6, skb is freed and -EINVAL is returned.
Then rxe_xmit_packet will return -EINVAL, too. In rxe_requester,
this skb is double freed.
In rxe_requester, kfree_skb is needed only after fill_packet fails.
So kfree_skb is moved from label err to test fill_packet.
Fixes: 5793b4652155 ("IB/rxe: remove unnecessary skb_clone in xmit")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Zhu Yanjun <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions
