Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206837
b: refs/heads/master
c: a8e93f3
h: refs/heads/master
i:
  206835: bda9ca9
v: v3
  • Loading branch information
Clemens Ladisch authored and Stefan Richter committed Jul 13, 2010
1 parent bbbbbc6 commit 172e6a5
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 250b2b6dd421c9f8844a867d2ac06e0661e0ad93
refs/heads/master: a8e93f3dccc066cd6dd1e9db1e35942914fc57d1
4 changes: 4 additions & 0 deletions trunk/drivers/firewire/core-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@ static int init_request(struct client *client,
(request->length > 4096 || request->length > 512 << speed))
return -EIO;

if (request->tcode == TCODE_WRITE_QUADLET_REQUEST &&
request->length < 4)
return -EINVAL;

e = kmalloc(sizeof(*e) + request->length, GFP_KERNEL);
if (e == NULL)
return -ENOMEM;
Expand Down

0 comments on commit 172e6a5

Please sign in to comment.