Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176325
b: refs/heads/master
c: 2886a8b
h: refs/heads/master
i:
  176323: 4716178
v: v3
  • Loading branch information
Arjan van de Ven authored and Linus Torvalds committed Dec 15, 2009
1 parent f0381f2 commit b930462
Show file tree
Hide file tree
Showing 2 changed files with 4 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: faa7b7ddca14887ac037f585d2fac7ca6c57037e
refs/heads/master: 2886a8bdfa007053b414ab01741a98c18c376a85
3 changes: 3 additions & 0 deletions trunk/drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3497,6 +3497,9 @@ static int fd_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd,
((cmd & 0x80) && !capable(CAP_SYS_ADMIN)))
return -EPERM;

if (WARN_ON(size < 0 || size > sizeof(inparam)))
return -EINVAL;

/* copyin */
CLEARSTRUCT(&inparam);
if (_IOC_DIR(cmd) & _IOC_WRITE)
Expand Down

0 comments on commit b930462

Please sign in to comment.