]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_ccw: fix vcdev pointer handling issues
authorHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Thu, 27 Feb 2014 13:34:35 +0000 (14:34 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 4 Mar 2014 09:41:03 +0000 (10:41 +0100)
commitad183e8941e9d017b56d9e58c8348629ebcb2e7f
treeecc95786e82a53aeff50efb50913aeb4bb9b9f32
parentbd2a1020c4b9c9a5d781bf50a748ac0d696422b5
virtio_ccw: fix vcdev pointer handling issues

The interrupt handler virtio_ccw_int_handler() using the vcdev pointer
is protected by the ccw_device lock. Resetting the pointer within the
ccw_device structure should be done when holding this lock.

Also resetting the vcdev pointer (under the ccw_device lock) prior to
freeing the vcdev pointer memory removes a critical path.

Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
drivers/s390/kvm/virtio_ccw.c