aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-floppy_ioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy_ioctl.c b/drivers/ide/ide-floppy_ioctl.c
index 7a03d34bc240..3a1f9b50b3eb 100644
--- a/drivers/ide/ide-floppy_ioctl.c
+++ b/drivers/ide/ide-floppy_ioctl.c
@@ -198,11 +198,12 @@ static int ide_floppy_get_format_progress(ide_drive_t *drive,
198 int __user *arg) 198 int __user *arg)
199{ 199{
200 struct ide_disk_obj *floppy = drive->driver_data; 200 struct ide_disk_obj *floppy = drive->driver_data;
201 u8 sense_buf[18];
201 int progress_indication = 0x10000; 202 int progress_indication = 0x10000;
202 203
203 if (drive->atapi_flags & IDE_AFLAG_SRFP) { 204 if (drive->atapi_flags & IDE_AFLAG_SRFP) {
204 ide_create_request_sense_cmd(drive, pc); 205 ide_create_request_sense_cmd(drive, pc);
205 if (ide_queue_pc_tail(drive, floppy->disk, pc, pc->buf, 206 if (ide_queue_pc_tail(drive, floppy->disk, pc, sense_buf,
206 pc->req_xfer)) 207 pc->req_xfer))
207 return -EIO; 208 return -EIO;
208 209