aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorQinglang Miao <miaoqinglang@huawei.com>2020-12-01 14:31:50 +0800
committerHeiko Carstens <hca@linux.ibm.com>2020-12-09 21:02:07 +0100
commit14d4c4fa46eeaa3922e8e1c4aa727eb0a1412804 (patch)
tree74c4e55967098490304b430d43d34ffc577eb47c /arch/s390
parents390/cio: remove pm support from ccw bus driver (diff)
downloadlinux-dev-14d4c4fa46eeaa3922e8e1c4aa727eb0a1412804.tar.xz
linux-dev-14d4c4fa46eeaa3922e8e1c4aa727eb0a1412804.zip
s390/cio: fix use-after-free in ccw_device_destroy_console
Use of sch->dev reference after the put_device() call could trigger the use-after-free bugs. Fix this by simply adjusting the position of put_device. Fixes: 37db8985b211 ("s390/cio: add basic protected virtualization support") Reported-by: Hulk Robot <hulkci@huawei.com> Suggested-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com> [vneethv@linux.ibm.com: Slight modification in the commit-message] Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions