summaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBorislav Petkov <petkovbb@gmail.com>2009-05-12 08:59:49 +0200
committerBorislav Petkov <petkovbb@gmail.com>2009-05-15 06:44:28 +0200
commit60cfab85da965035c7baf66a63f048155bb302b1 (patch)
treea686781a6284b5d4cd18853c09bc8bbc07e012f7 /drivers/ide
parentae3a8387be529e632eac69b342524c25b892fc63 (diff)
downloadop-kernel-dev-60cfab85da965035c7baf66a63f048155bb302b1.zip
op-kernel-dev-60cfab85da965035c7baf66a63f048155bb302b1.tar.gz
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>
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 7a03d34..3a1f9b5 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,
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;
OpenPOWER on IntegriCloud