Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360822
b: refs/heads/master
c: ece6b0a
h: refs/heads/master
v: v3
  • Loading branch information
Cong Wang authored and David S. Miller committed Mar 4, 2013
1 parent d061751 commit 5dd8b2f
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: b711c12113620081708c6ccd43768b5a2501e2ab
refs/heads/master: ece6b0a2b25652d684a7ced4ae680a863af041e0
3 changes: 3 additions & 0 deletions trunk/net/rds/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ struct rds_message *rds_message_alloc(unsigned int extra_len, gfp_t gfp)
{
struct rds_message *rm;

if (extra_len > KMALLOC_MAX_SIZE - sizeof(struct rds_message))
return NULL;

rm = kzalloc(sizeof(struct rds_message) + extra_len, gfp);
if (!rm)
goto out;
Expand Down

0 comments on commit 5dd8b2f

Please sign in to comment.