diff --git a/net/can/af_can.c b/net/can/af_can.c index 743470680127a79ef13890879dd293170ae61075..80281ef2ccbd227fcdb6a2f482c70c35dd1c1def 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c @@ -99,6 +99,7 @@ EXPORT_SYMBOL(can_ioctl); static void can_sock_destruct(struct sock *sk) { skb_queue_purge(&sk->sk_receive_queue); + skb_queue_purge(&sk->sk_error_queue); } static const struct can_proto *can_get_proto(int protocol)