aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sunrpc/cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index 3e1ef8bf4dc..a3f340c8b79 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -1244,8 +1244,10 @@ static int content_open(struct inode *inode, struct file *file,
1244 if (!cd || !try_module_get(cd->owner)) 1244 if (!cd || !try_module_get(cd->owner))
1245 return -EACCES; 1245 return -EACCES;
1246 han = __seq_open_private(file, &cache_content_op, sizeof(*han)); 1246 han = __seq_open_private(file, &cache_content_op, sizeof(*han));
1247 if (han == NULL) 1247 if (han == NULL) {
1248 module_put(cd->owner);
1248 return -ENOMEM; 1249 return -ENOMEM;
1250 }
1249 1251
1250 han->cd = cd; 1252 han->cd = cd;
1251 return 0; 1253 return 0;