Commit 92e9f4fa authored by Bo Sun's avatar Bo Sun Committed by Jakub Kicinski
Browse files

octeontx2-pf: fix bitmap leak



The bitmap allocated with bitmap_zalloc() in otx2_probe() was not
released in otx2_remove(). Unbinding and rebinding the driver therefore
triggers a kmemleak warning:

    unreferenced object (size 8):
      backtrace:
        bitmap_zalloc
        otx2_probe

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

Fixes: efabce29 ("octeontx2-pf: AF_XDP zero copy receive support")
Signed-off-by: default avatarBo Sun <bo@mboxify.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent cd9ea7da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment