Re: [PATCH] can: can327: fix potential skb leak when netdev is down

From: Max Staudt
Date: Tue Nov 22 2022 - 05:10:13 EST


Marc, Wolfgang,

Could you please include William's patch to can327, provided that you
see no issue with it?


Thanks :)

Max




On Tue, 22 Nov 2022 10:10:50 +0800
"Ziyang Xuan (William)" <william.xuanziyang@xxxxxxxxxx> wrote:

> Hello,
>
> Gently ask.
>
> Is there any other problem? And can it be applied?
>
> Thanks.
>
> > (CC Vincent, he may be interested)
> >
> >
> > On Thu, 10 Nov 2022 14:14:37 +0800
> > Ziyang Xuan <william.xuanziyang@xxxxxxxxxx> wrote:
> >
> >> Fix it by adding kfree_skb() in can327_feed_frame_to_netdev() when netdev
> >> is down. Not tested, just compiled.
> >
> > Looks correct to me, so:
> >
> > Reviewed-by: Max Staudt <max@xxxxxxxxx>
> >
> >
> > Thank you very much for finding and fixing this!
> >
> > Max
> >
> > .
> >