summaryrefslogtreecommitdiff
path: root/fs/binfmt_script.c
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2017-04-23 17:38:35 +0800
committerDavid S. Miller <davem@davemloft.net>2017-04-24 15:51:31 -0400
commit2a39e7aa8a98f777f0732ca7125b6c9668791760 (patch)
treea398faf313dce384ba75894045ca7604c0868be0 /fs/binfmt_script.c
parent78302fd405769c9a9379e9adda119d533dce2eed (diff)
downloadlinux-2a39e7aa8a98f777f0732ca7125b6c9668791760.tar.gz
linux-2a39e7aa8a98f777f0732ca7125b6c9668791760.tar.xz
wan: pc300too: abort path on failure
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. Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/binfmt_script.c')
0 files changed, 0 insertions, 0 deletions