Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39675
b: refs/heads/master
c: 3a42bb2
h: refs/heads/master
i:
  39673: 5b987ff
  39671: 0d8cdf2
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Oct 16, 2006
1 parent 786f01e commit 33aefee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d90dafdb1f0e3c2b69fa8d3fbe99649127c8fa4
refs/heads/master: 3a42bb223f61fbd755d6e61b9b50b9681d68fcae
13 changes: 9 additions & 4 deletions trunk/drivers/ide/ide-taskfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ int ide_taskfile_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
task_ioreg_t *hobsptr = args.hobRegister;
int err = 0;
int tasksize = sizeof(struct ide_task_request_s);
int taskin = 0;
int taskout = 0;
unsigned int taskin = 0;
unsigned int taskout = 0;
u8 io_32bit = drive->io_32bit;
char __user *buf = (char __user *)arg;

Expand All @@ -538,8 +538,13 @@ int ide_taskfile_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
return -EFAULT;
}

taskout = (int) req_task->out_size;
taskin = (int) req_task->in_size;
taskout = req_task->out_size;
taskin = req_task->in_size;

if (taskin > 65536 || taskout > 65536) {
err = -EINVAL;
goto abort;
}

if (taskout) {
int outtotal = tasksize;
Expand Down

0 comments on commit 33aefee

Please sign in to comment.