]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-taskfile.c
ide: remove SECTOR_WORDS define
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-taskfile.c
index b1fb815dbf68bb2fda773b1f898235afbc81e46e..7ffe9004a4d69137a6e4b788997873e6669daf48 100644 (file)
@@ -768,7 +768,7 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
 
        if (args[3]) {
                tfargs.tf_flags |= IDE_TFLAG_IO_16BIT;
-               bufsize = SECTOR_WORDS * 4 * args[3];
+               bufsize = SECTOR_SIZE * args[3];
                buf = kzalloc(bufsize, GFP_KERNEL);
                if (buf == NULL)
                        return -ENOMEM;