Merge tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~shefty/rdma-dev.git] / drivers / scsi / virtio_scsi.c
index d5f9f45..74ab67a 100644 (file)
@@ -471,6 +471,8 @@ static int virtscsi_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *sc)
                              sizeof cmd->req.cmd, sizeof cmd->resp.cmd,
                              GFP_ATOMIC) == 0)
                ret = 0;
+       else
+               mempool_free(cmd, virtscsi_cmd_pool);
 
 out:
        return ret;