aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/algos/i2c-algo-bit.c
diff options
context:
space:
mode:
authorZhu Yanjun <[email protected]>2018-06-07 06:32:52 +0000
committerJason Gunthorpe <[email protected]>2018-06-11 17:02:27 +0000
commit828d810550abc1fffff9b20545fec4bc150d5e82 (patch)
tree63af46473c30b6c01fa7b565d44c176ed62a315e /drivers/i2c/algos/i2c-algo-bit.c
parentRDMA/mlx5: Update SPDX tags to show proper license (diff)
downloadkernel-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