Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309477
b: refs/heads/master
c: 6bd9adb
h: refs/heads/master
i:
  309475: ac37422
v: v3
  • Loading branch information
Sage Weil committed May 22, 2012
1 parent 5268480 commit 0d324bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 35f9f8a09e1e88e31bd34a1e645ca0e5f070dd5c
refs/heads/master: 6bd9adbdf9ca6a052b0b7455ac67b925eb38cfad
6 changes: 5 additions & 1 deletion trunk/net/ceph/osdmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,12 @@ struct ceph_osdmap *osdmap_apply_incremental(void **p, void *end,
pglen = ceph_decode_32(p);

if (pglen) {
/* insert */
ceph_decode_need(p, end, pglen*sizeof(u32), bad);

/* removing existing (if any) */
(void) __remove_pg_mapping(&map->pg_temp, pgid);

/* insert */
pg = kmalloc(sizeof(*pg) + sizeof(u32)*pglen, GFP_NOFS);
if (!pg) {
err = -ENOMEM;
Expand Down

0 comments on commit 0d324bf

Please sign in to comment.