Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320278
b: refs/heads/master
c: a550604
h: refs/heads/master
v: v3
  • Loading branch information
Xi Wang authored and Alex Elder committed Jun 7, 2012
1 parent a1830db commit 629515f
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: e91a9b639a691e0982088b5954eaafb5a25c8f1c
refs/heads/master: a5506049500b30dbc5edb4d07a3577477c1f3643
4 changes: 4 additions & 0 deletions trunk/net/ceph/osdmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,10 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
(void) __remove_pg_mapping(&map->pg_temp, pgid);

/* insert */
if (pglen > (UINT_MAX - sizeof(*pg)) / sizeof(u32)) {
err = -EINVAL;
goto bad;
}
pg = kmalloc(sizeof(*pg) + sizeof(u32)*pglen, GFP_NOFS);
if (!pg) {
err = -ENOMEM;
Expand Down

0 comments on commit 629515f

Please sign in to comment.