Patch 2.6.32.28 to 2.6.32.32
/net/sunrpc/cache.c
blob:d6eee291a0e2bbe2b26e98283a346611e568b172 -> blob:25f7801e0ab9766db9a839d2a7e6fb08639a542c
--- net/sunrpc/cache.c
+++ net/sunrpc/cache.c
@@ -1234,8 +1234,10 @@ static int content_open(struct inode *in
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;