aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@gmail.com>2009-05-12 02:59:49 -0400
committerBorislav Petkov <petkovbb@gmail.com>2009-05-15 00:44:28 -0400
commit60cfab85da965035c7baf66a63f048155bb302b1 (patch)
treea686781a6284b5d4cd18853c09bc8bbc07e012f7
parentae3a8387be529e632eac69b342524c25b892fc63 (diff)
ide-floppy/ide_floppy_get_format_progress: use local sense buffer
There should be no functional change resulting from this patch. Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
-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