Re: [PATCH] wifi: ipw2100: fix potential memory leak in ipw2100_pci_init_one()
From: Abdun Nihaal
Date: Sat Jun 20 2026 - 02:50:55 EST
On Sat, Jun 20, 2026 at 11:25:54AM +0530, Abdun Nihaal wrote:
> The memory allocated in the ipw2100_alloc_device() function is not freed
> in some of the error paths in ipw2100_pci_init_one(). Fix that by
> converting the direct return into a goto to the error path return.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 2c86c275015c ("Add ipw2100 wireless driver.")
> Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>
Sashiko reports a null pointer dereference introduced by the above
patch, and I realized I made a mistake in the first goto error path.
https://sashiko.dev/#/patchset/20260620055558.75740-1-nihaal%40cse.iitm.ac.in
Please ignore this patch. I'll send a v2 with the correct fix.
Regards,
Nihaal