]> git.baikalelectronics.ru Git - kernel.git/commit
can: purge socket error queue on sock destruct
authorWillem de Bruijn <willemb@google.com>
Fri, 7 Jun 2019 20:46:07 +0000 (16:46 -0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 7 Jun 2019 21:03:54 +0000 (23:03 +0200)
commit50598c763115ace6eaf1cb1742b2a2f60dd739d4
treea71e9064d8d61e0a9f066517445e2dea92f736d7
parent3889be338b9b2680ba26fa59e973fca5521c1fa3
can: purge socket error queue on sock destruct

CAN supports software tx timestamps as of the below commit. Purge
any queued timestamp packets on socket destroy.

Fixes: 0dee218403c4 ("ip: support for TX timestamps on UDP and RAW sockets")
Reported-by: syzbot+a90604060cb40f5bdd16@syzkaller.appspotmail.com
Signed-off-by: Willem de Bruijn <willemb@google.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/af_can.c