Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221469
b: refs/heads/master
c: f63ae56
h: refs/heads/master
i:
  221467: b5a4a0c
v: v3
  • Loading branch information
Dan Carpenter authored and James Bottomley committed Oct 25, 2010
1 parent a33caa7 commit e73450c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 546ae796bfac6399e30da4b5af2cf7a6d0f8a4ec
refs/heads/master: f63ae56e4e97fb12053590e41a4fa59e7daa74a4
8 changes: 8 additions & 0 deletions trunk/drivers/scsi/gdth.c
Original file line number Diff line number Diff line change
Expand Up @@ -4177,6 +4177,14 @@ static int ioc_general(void __user *arg, char *cmnd)
ha = gdth_find_ha(gen.ionode);
if (!ha)
return -EFAULT;

if (gen.data_len > INT_MAX)
return -EINVAL;
if (gen.sense_len > INT_MAX)
return -EINVAL;
if (gen.data_len + gen.sense_len > INT_MAX)
return -EINVAL;

if (gen.data_len + gen.sense_len != 0) {
if (!(buf = gdth_ioctl_alloc(ha, gen.data_len + gen.sense_len,
FALSE, &paddr)))
Expand Down

0 comments on commit e73450c

Please sign in to comment.