]> err.no Git - linux-2.6/blobdiff - drivers/block/nbd.c
Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6] / drivers / block / nbd.c
index bdba282f15e42eb57968972d6d982d0fd782fd25..ad98dda6037dd5193baa266bf2471c52ca1b6f79 100644 (file)
@@ -577,6 +577,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file,
        switch (cmd) {
        case NBD_DISCONNECT:
                printk(KERN_INFO "%s: NBD_DISCONNECT\n", lo->disk->disk_name);
+               blk_rq_init(NULL, &sreq);
                sreq.cmd_type = REQ_TYPE_SPECIAL;
                nbd_cmd(&sreq) = NBD_CMD_DISC;
                /*