On Thu, Jun 07, 2018 at 02:32:52AM -0400, Zhu Yanjun wrote: > 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. The better solution is not to release skb in rxe_send(), but do it at the same place where you allocated/initialized skb. Thanks
Attachment:
signature.asc
Description: PGP signature