wifi: ipw2100: fix potential memory leak in ipw2100_pci_init_one()
0Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Track
exploitation probability
—
observed exploitation
nono source reports it
In the Linux kernel, the following vulnerability has been resolved:
wifi: ipw2100: fix potential memory leak in ipw2100_pci_init_one()
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.
The error path when pci_enable_device() fails cannot jump to fail, since
at this point priv is not set, so perform error handling inline.
Affected products
Linux · LinuxReferences
https://git.kernel.org/stable/c/0d388f62031dbabcba0f44bb91b59f10e88cac17https://git.kernel.org/stable/c/7cbda50eebcd9aa00b0de382f776287cf7a36cf8https://git.kernel.org/stable/c/836a19c654dcb1b01878a70090af016fbd0fd7e5https://git.kernel.org/stable/c/f442e581a88937671a22ceb3806c186265ef6254https://git.kernel.org/stable/c/f75b9a2a9d8334ae0f9c5e47df7b31f7aeb1fdbe