pandora: update defconfig
[pandora-kernel.git] / drivers / ide / ide-floppy_ioctl.c
index 7a03d34..9c22882 100644 (file)
@@ -47,7 +47,6 @@ static int ide_floppy_get_format_capacities(ide_drive_t *drive,
                return -EINVAL;
 
        ide_floppy_create_read_capacity_cmd(pc);
-       pc->buf_size = sizeof(pc_buf);
 
        if (ide_queue_pc_tail(drive, floppy->disk, pc, pc_buf, pc->req_xfer)) {
                printk(KERN_ERR "ide-floppy: Can't get floppy parameters\n");
@@ -198,11 +197,12 @@ static int ide_floppy_get_format_progress(ide_drive_t *drive,
                                          int __user *arg)
 {
        struct ide_disk_obj *floppy = drive->driver_data;
+       u8 sense_buf[18];
        int progress_indication = 0x10000;
 
        if (drive->atapi_flags & IDE_AFLAG_SRFP) {
                ide_create_request_sense_cmd(drive, pc);
-               if (ide_queue_pc_tail(drive, floppy->disk, pc, pc->buf,
+               if (ide_queue_pc_tail(drive, floppy->disk, pc, sense_buf,
                                      pc->req_xfer))
                        return -EIO;