[SCSI] virtio_scsi: fix memory leak on full queue condition.
authorEric Northup <digitaleric@google.com>
Thu, 8 Nov 2012 09:55:50 +0000 (01:55 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 27 Nov 2012 04:59:45 +0000 (08:59 +0400)
commitb56d1003512c33aa1752d84e3fa078bc76b15bf8
treec3578ca43856c4f652d5425e238c4c01973308af
parent0b9d37aeb8bdf20ed2f994cd87eefb44e8ece382
[SCSI] virtio_scsi: fix memory leak on full queue condition.

virtscsi_queuecommand was leaking memory when the virtio queue was full.

Tested: Guest operates correctly even with very small queue sizes, validated
we're not leaking kmalloc-192 sized allocations anymore.

Signed-off-by: Eric Northup <digitaleric@google.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/virtio_scsi.c
This page took 0.025448 seconds and 5 git commands to generate.