On 08/06/2018 03:14 PM, Jimmy Assarsson wrote: > The call to can_put_echo_skb() may result in the skb being freed. The skb > is later used in the call to dev->ops->dev_frame_to_cmd(). > > This is avoided by moving the call to can_put_echo_skb() after > dev->ops->dev_frame_to_cmd(). > > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Signed-off-by: Jimmy Assarsson <jimmyassarsson@xxxxxxxxx> Applied both to can-next Tnx, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Attachment:
signature.asc
Description: OpenPGP digital signature