mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
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>
This commit is contained in:
parent
ae3a8387be
commit
60cfab85da
1 changed files with 2 additions and 1 deletions
|
@ -198,11 +198,12 @@ static int ide_floppy_get_format_progress(ide_drive_t *drive,
|
||||||
int __user *arg)
|
int __user *arg)
|
||||||
{
|
{
|
||||||
struct ide_disk_obj *floppy = drive->driver_data;
|
struct ide_disk_obj *floppy = drive->driver_data;
|
||||||
|
u8 sense_buf[18];
|
||||||
int progress_indication = 0x10000;
|
int progress_indication = 0x10000;
|
||||||
|
|
||||||
if (drive->atapi_flags & IDE_AFLAG_SRFP) {
|
if (drive->atapi_flags & IDE_AFLAG_SRFP) {
|
||||||
ide_create_request_sense_cmd(drive, pc);
|
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))
|
pc->req_xfer))
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue