Thread (8 messages) 8 messages, 3 authors, 2025-09-30

Re: [PATCH 1/2] octeontx2-vf: fix bitmap leak

From: Simon Horman <horms@kernel.org>
Date: 2025-09-29 10:11:53
Also in: lkml, stable

On Sat, Sep 27, 2025 at 03:15:04PM +0800, Bo Sun wrote:
The bitmap allocated with bitmap_zalloc() in otx2vf_probe() was not
released in otx2vf_remove(). Unbinding and rebinding the driver therefore
triggers a kmemleak warning:

    unreferenced object (size 8):
      backtrace:
        bitmap_zalloc
        otx2vf_probe

Call bitmap_free() in the remove path to fix the leak.

Fixes: efabce290151 ("octeontx2-pf: AF_XDP zero copy receive support")
Cc: stable@vger.kernel.org
Signed-off-by: Bo Sun <redacted>
Reviewed-by: Simon Horman <horms@kernel.org>

For reference, as a fix for code present in net, this series
should be targeted at net, like this:

Subject: [PATCH net 1/2] ...

See: https://docs.kernel.org/process/maintainer-netdev.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help