summaryrefslogtreecommitdiff
path: root/drivers/net/bonding
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-05-04 10:32:04 (GMT)
committerJames Bottomley <JBottomley@Parallels.com>2012-05-10 07:27:06 (GMT)
commite4594bb50518eb89c447be97dabd5bd99f405d71 (patch)
treef4e8d81b2b30cb8ab53207382c2841983954b833 /drivers/net/bonding
parent3c8d9a957d0ae62c2815393a781ab7ff4d5205e7 (diff)
downloadlinux-fsl-qoriq-e4594bb50518eb89c447be97dabd5bd99f405d71.tar.xz
[SCSI] virtio_scsi: fix TMF use-after-free
Fix a use-after-free in the TMF path, where cmd may have been already freed by virtscsi_complete_free when wait_for_completion restarts executing virtscsi_tmf. Technically a race, but in practice the command will always be freed long before the completion waiter is awoken. The fix is to make callers specifying a completion responsible for freeing the command in all cases. Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/net/bonding')
0 files changed, 0 insertions, 0 deletions