Skip to content

Commit c5f3fd2

Browse files
author
Al Viro
committed
apparmorfs: don't duplicate kfree_link()
rawdata_link_cb() is identical to it Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 12c0c3a commit c5f3fd2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

security/apparmor/apparmorfs.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,11 +1615,6 @@ static char *gen_symlink_name(int depth, const char *dirname, const char *fname)
16151615
return buffer;
16161616
}
16171617

1618-
static void rawdata_link_cb(void *arg)
1619-
{
1620-
kfree(arg);
1621-
}
1622-
16231618
static const char *rawdata_get_link_base(struct dentry *dentry,
16241619
struct inode *inode,
16251620
struct delayed_call *done,
@@ -1643,7 +1638,7 @@ static const char *rawdata_get_link_base(struct dentry *dentry,
16431638
if (IS_ERR(target))
16441639
return target;
16451640

1646-
set_delayed_call(done, rawdata_link_cb, target);
1641+
set_delayed_call(done, kfree_link, target);
16471642

16481643
return target;
16491644
}

0 commit comments

Comments
 (0)