Skip to content

Commit a97e265

Browse files
wdebruijgregkh
authored andcommitted
can: purge socket error queue on sock destruct
commit fd704bd upstream. CAN supports software tx timestamps as of the below commit. Purge any queued timestamp packets on socket destroy. Fixes: 51f31ca ("ip: support for TX timestamps on UDP and RAW sockets") Reported-by: [email protected] Signed-off-by: Willem de Bruijn <[email protected]> Cc: linux-stable <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 50b1c5b commit a97e265

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/can/af_can.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ EXPORT_SYMBOL(can_ioctl);
113113
static void can_sock_destruct(struct sock *sk)
114114
{
115115
skb_queue_purge(&sk->sk_receive_queue);
116+
skb_queue_purge(&sk->sk_error_queue);
116117
}
117118

118119
static const struct can_proto *can_get_proto(int protocol)

0 commit comments

Comments
 (0)