Re: [PATCH 1/1] wan: pc300too: abort path on failure

2017-04-24 Thread David Miller
From: Pan Bian Date: Sun, 23 Apr 2017 17:38:35 +0800 > From: Pan Bian > > 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,

[PATCH 1/1] wan: pc300too: abort path on failure

2017-04-23 Thread Pan Bian
From: Pan Bian 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