aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/jffs2/acl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jffs2/acl.c b/fs/jffs2/acl.c
index 009ec0b5993d..2f7a3c090489 100644
--- a/fs/jffs2/acl.c
+++ b/fs/jffs2/acl.c
@@ -202,8 +202,7 @@ struct posix_acl *jffs2_get_acl(struct inode *inode, int type)
202 } else { 202 } else {
203 acl = ERR_PTR(rc); 203 acl = ERR_PTR(rc);
204 } 204 }
205 if (value) 205 kfree(value);
206 kfree(value);
207 if (!IS_ERR(acl)) 206 if (!IS_ERR(acl))
208 set_cached_acl(inode, type, acl); 207 set_cached_acl(inode, type, acl);
209 return acl; 208 return acl;