Patch "wan: pc300too: abort path on failure" has been added to the 3.18-stable tree
This is a note to let you know that I've just added the patch titled
wan: pc300too: abort path on failure
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
wan-pc300too-abort-path-on-failure.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Mar 22 15:16:04 CET 2018
From: Pan Bian <[email protected]>
Date: Sun, 23 Apr 2017 17:38:35 +0800
Subject: wan: pc300too: abort path on failure
From: Pan Bian <[email protected]>
[ Upstream commit 2a39e7aa8a98f777f0732ca7125b6c9668791760 ]
In function pc300_pci_init_one(), on the ioremap error path, function pc300_pci_remove_one() is called to free the allocated memory. However, the path is not terminated, and the freed memory will be used later, resulting in use-after-free bugs. This path fixes the bug.
--- drivers/net/wan/pc300too.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wan/pc300too.c +1 -0
@@ -347,6 +347,7 @@ static int pc300_pci_init_one(struct pci card->rambase == NULL) {pr_err ("ioremap() failed\n" );pc300_pci_remove_one (pdev); +return -ENOMEM ; }/* PLX PCI 9050 workaround for local configuration register read bug */
Patches currently in stable-queue which might be from [email protected] are
queue-3.18/rndis_wlan-add-return-value-validation.patch queue-3.18/qlcnic-fix-unchecked-return-value.patch queue-3.18/wan-pc300too-abort-path-on-failure.patch