Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297043
b: refs/heads/master
c: f946eeb
h: refs/heads/master
i:
  297041: d4d4136
  297039: 6cf2440
v: v3
  • Loading branch information
Sasha Levin authored and Rusty Russell committed Mar 26, 2012
1 parent dab0338 commit b5cec82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: d53799be6758841e1ffb1fd3780f73d0ffe44432
refs/heads/master: f946eeb9313ff1470758e171a60fe7438a2ded3f
3 changes: 1 addition & 2 deletions trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2411,8 +2411,7 @@ static int copy_and_check(struct load_info *info,
return -ENOEXEC;

/* Suck in entire file: we'll want most of it. */
/* vmalloc barfs on "unusual" numbers. Check here */
if (len > 64 * 1024 * 1024 || (hdr = vmalloc(len)) == NULL)
if ((hdr = vmalloc(len)) == NULL)
return -ENOMEM;

if (copy_from_user(hdr, umod, len) != 0) {
Expand Down

0 comments on commit b5cec82

Please sign in to comment.