Re: [PATCH] can: kvaser_usb: Fix accessing freed memory in kvaser_usb_start_xmit()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux