提交 992c273a 编写于 作者: D David Howells

rxrpc: Free packets discarded in data_ready

Under certain conditions, the data_ready handler will discard a packet.
These need to be freed.
Signed-off-by: NDavid Howells <dhowells@redhat.com>
上级 50fd85a1
......@@ -744,6 +744,8 @@ void rxrpc_data_ready(struct sock *sk)
if (sp->hdr.type != RXRPC_PACKET_TYPE_ABORT) {
_debug("reject type %d",sp->hdr.type);
rxrpc_reject_packet(local, skb);
} else {
rxrpc_free_skb(skb);
}
_leave(" [no call]");
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册