[PATCH] ARM: module: Reclaim the unwind list of module on kmalloc failed

Linus Walleij linus.walleij at linaro.org
Tue Nov 8 06:05:51 PST 2022


On Thu, Nov 3, 2022 at 2:20 AM Liao Chang <liaochang1 at huawei.com> wrote:

> When unwind table allocation failed, it needs to reclaim the unwind list
> of module to avoid potential NULL pointer exception and memory leakage.
>
> Fixes: b6f21d14f1ac ("ARM: 9204/2: module: Add all unwind tables when load module")
> Signed-off-by: Liao Chang <liaochang1 at huawei.com>
> Cc: Chen Zhongjin <chenzhongjin at huawei.com>

Looks good to me:
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Please put this into Russells patch tracker.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list