Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
[linux-block.git] / drivers / scsi / scsi_debug.c
index 1829648982bee9fb9a665132420666fbbd8a988c..fa5758cbdedb10a4c8bf5424c6c189afb47fd2e9 100644 (file)
@@ -1688,7 +1688,7 @@ static int do_device_access(struct scsi_cmnd *scmd,
                            unsigned long long lba, unsigned int num, int write)
 {
        int ret;
-       unsigned int block, rest = 0;
+       unsigned long long block, rest = 0;
        int (*func)(struct scsi_cmnd *, unsigned char *, int);
 
        func = write ? fetch_to_dev_buffer : fill_from_dev_buffer;