Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372182
b: refs/heads/master
c: a7823c7
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Khoroshilov authored and J. Bruce Fields committed Apr 3, 2013
1 parent ba228f9 commit c6e5235
Show file tree
Hide file tree
Showing 2 changed files with 4 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: ff7c4b3693cbc7e938f49ed89e2f649a33f03ed1
refs/heads/master: a7823c797b4d29727499f0a75ddf3ed07af8ad0a
4 changes: 3 additions & 1 deletion trunk/net/sunrpc/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,10 @@ static int cache_open(struct inode *inode, struct file *filp,
nonseekable_open(inode, filp);
if (filp->f_mode & FMODE_READ) {
rp = kmalloc(sizeof(*rp), GFP_KERNEL);
if (!rp)
if (!rp) {
module_put(cd->owner);
return -ENOMEM;
}
rp->offset = 0;
rp->q.reader = 1;
atomic_inc(&cd->readers);
Expand Down

0 comments on commit c6e5235

Please sign in to comment.