Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320277
b: refs/heads/master
c: e91a9b6
h: refs/heads/master
i:
  320275: b9b666f
v: v3
  • Loading branch information
Xi Wang authored and Alex Elder committed Jun 7, 2012
1 parent 6953164 commit a1830db
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: ad3b904c07dfa88603689bf9a67bffbb9b99beb5
refs/heads/master: e91a9b639a691e0982088b5954eaafb5a25c8f1c
3 changes: 3 additions & 0 deletions trunk/net/ceph/osdmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,9 @@ struct ceph_osdmap *osdmap_decode(void **p, void *end)
ceph_decode_need(p, end, sizeof(u32) + sizeof(u64), bad);
ceph_decode_copy(p, &pgid, sizeof(pgid));
n = ceph_decode_32(p);
err = -EINVAL;
if (n > (UINT_MAX - sizeof(*pg)) / sizeof(u32))
goto bad;
ceph_decode_need(p, end, n * sizeof(u32), bad);
err = -ENOMEM;
pg = kmalloc(sizeof(*pg) + n*sizeof(u32), GFP_NOFS);
Expand Down

0 comments on commit a1830db

Please sign in to comment.