Re: [PATCH v2] nfc: virtual_ncidev: Add variable to check if ndev is running

From: Krzysztof Kozlowski
Date: Tue Nov 21 2023 - 04:00:23 EST


On 21/11/2023 08:53, Nguyen Dinh Phi wrote:
> syzbot reported an memory leak that happens when an skb is add to
> send_buff after virtual nci closed.
> This patch adds a variable to track if the ndev is running before
> handling new skb in send function.
>
> Signed-off-by: Nguyen Dinh Phi <phind.uet@xxxxxxxxx>
> Reported-by: syzbot+6eb09d75211863f15e3e@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://lore.kernel.org/lkml/00000000000075472b06007df4fb@xxxxxxxxxx
> ---
> V2:
> - Remove unused macro.


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>

Best regards,
Krzysztof