From 3c0bd65eeabf22f911eea6fe67449ec5f2c1035d Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Thu, 11 Mar 2010 14:08:10 -0800 Subject: [PATCH] --- yaml --- r: 192354 b: refs/heads/master c: a5990ea1254cd186b38744507aeec3136a0c1c95 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/sunrpc/cache.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 99086ff7e410..fdf1689d4c6f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 91885258e8343bb65c08f668d7e6c16563eb4284 +refs/heads/master: a5990ea1254cd186b38744507aeec3136a0c1c95 diff --git a/trunk/net/sunrpc/cache.c b/trunk/net/sunrpc/cache.c index 3e1ef8bf4dc2..a3f340c8b79a 100644 --- a/trunk/net/sunrpc/cache.c +++ b/trunk/net/sunrpc/cache.c @@ -1244,8 +1244,10 @@ static int content_open(struct inode *inode, struct file *file, if (!cd || !try_module_get(cd->owner)) return -EACCES; han = __seq_open_private(file, &cache_content_op, sizeof(*han)); - if (han == NULL) + if (han == NULL) { + module_put(cd->owner); return -ENOMEM; + } han->cd = cd; return 0;