X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=drivers%2Fide%2Fide-floppy_ioctl.c;h=cd8a42027ede72f10c0acd0a96e7c0fb6ad2e4f6;hb=492f59f526d95e73028f57bff475b4bbe3c8cb72;hp=8f8be8546038d5950d5e944e26871fc7f0186a49;hpb=e9e67a8b579d9605a3d06f7430dbb40465c97bf1;p=sfrench%2Fcifs-2.6.git diff --git a/drivers/ide/ide-floppy_ioctl.c b/drivers/ide/ide-floppy_ioctl.c index 8f8be8546038..cd8a42027ede 100644 --- a/drivers/ide/ide-floppy_ioctl.c +++ b/drivers/ide/ide-floppy_ioctl.c @@ -36,9 +36,9 @@ static int ide_floppy_get_format_capacities(ide_drive_t *drive, int __user *arg) { struct ide_disk_obj *floppy = drive->driver_data; - u8 header_len, desc_cnt; int i, blocks, length, u_array_size, u_index; int __user *argp; + u8 pc_buf[256], header_len, desc_cnt; if (get_user(u_array_size, arg)) return -EFAULT; @@ -47,6 +47,9 @@ static int ide_floppy_get_format_capacities(ide_drive_t *drive, return -EINVAL; ide_floppy_create_read_capacity_cmd(pc); + pc->buf = &pc_buf[0]; + pc->buf_size = sizeof(pc_buf); + if (ide_queue_pc_tail(drive, floppy->disk, pc)) { printk(KERN_ERR "ide-floppy: Can't get floppy parameters\n"); return -EIO;