[PATCH AUTOSEL for 4.4 046/101] wan: pc300too: abort path on failure

2018-03-07 Thread Sasha Levin
From: Pan Bian [ 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

[PATCH AUTOSEL for 4.4 046/101] wan: pc300too: abort path on failure

2018-03-07 Thread Sasha Levin
From: Pan Bian [ 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,