Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136011
b: refs/heads/master
c: 5d3fd69
h: refs/heads/master
i:
  136009: 81e97a4
  136007: df3422d
v: v3
  • Loading branch information
Stefan Richter committed Mar 24, 2009
1 parent 3a7143c commit d28e46e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 1566f3dc3e5986a16c7bbb3bb95bb691251a8d25
refs/heads/master: 5d3fd692a7196a9045fb606f891f5987959b65a0
5 changes: 2 additions & 3 deletions trunk/drivers/firewire/fw-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,8 @@ static int init_request(struct client *client,
struct outbound_transaction_event *e;
int ret;

/* What is the biggest size we'll accept, really? */
if (request->length > 4096)
return -EINVAL;
if (request->length > 4096 || request->length > 512 << speed)
return -EIO;

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

0 comments on commit d28e46e

Please sign in to comment.