summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2015-09-07 20:51:39 +0300
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-10-14 15:32:02 +0300
commita6ef15652d260f754ead223d0c55434a3a39fe1d (patch)
treeb2a872f3b03d863b648a1e796d41ef4f20e46761 /usr
parent1bc6664bdfb949bc69a08113801e7d6acbf6bc3f (diff)
downloadlinux-a6ef15652d260f754ead223d0c55434a3a39fe1d.tar.xz
s390/cio: fix use after free in cmb processing
Devices with active channel measurement are included in a list. When a device is removed without deactivating channel measurement first the list_head is freed but still used. Fix this by making sure that channel measurement is deactivated during device deregistration. For devices that we deregister because they are no longer accessible deactivating channel measurement will fail. In this case we can report success because the FW will no longer access the measurement block. In addition to these steps keep an extra device reference while channel measurement is active. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions