Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4006
b: refs/heads/master
c: ba03bda
h: refs/heads/master
v: v3
  • Loading branch information
Pekka Enberg authored and Linus Torvalds committed Jun 30, 2005
1 parent 3eb23a5 commit d71e0f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: f220ab2a5162c35cca6993ea473937cfc962fce4
refs/heads/master: ba03bda81e160b2724451074cdcb597d14f7d7e0
11 changes: 6 additions & 5 deletions trunk/fs/freevxfs/vxfs_fshead.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,18 @@ vxfs_getfsh(struct inode *ip, int which)
struct buffer_head *bp;

bp = vxfs_bread(ip, which);
if (buffer_mapped(bp)) {
if (bp) {
struct vxfs_fsh *fhp;

if (!(fhp = kmalloc(sizeof(*fhp), SLAB_KERNEL)))
return NULL;
if (!(fhp = kmalloc(sizeof(*fhp), GFP_KERNEL)))
goto out;
memcpy(fhp, bp->b_data, sizeof(*fhp));

brelse(bp);
put_bh(bp);
return (fhp);
}

out:
brelse(bp);
return NULL;
}

Expand Down

0 comments on commit d71e0f7

Please sign in to comment.