diff options
author | 2020-12-28 14:20:15 +0000 | |
---|---|---|
committer | 2020-12-28 14:20:15 +0000 | |
commit | 8db90aa36063f471bea1e65e23185913043852dc (patch) | |
tree | 32f765852c4663ae28751bd2ab32463da6591701 /security/commoncap.c | |
parent | spi: stm32: FIFO threshold level - fix align packet size (diff) | |
parent | Linux 5.11-rc1 (diff) | |
download | wireguard-linux-8db90aa36063f471bea1e65e23185913043852dc.tar.xz wireguard-linux-8db90aa36063f471bea1e65e23185913043852dc.zip |
Merge tag 'v5.11-rc1' into spi-5.11
Linux 5.11-rc1
Diffstat (limited to 'security/commoncap.c')
-rw-r--r-- | security/commoncap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/commoncap.c b/security/commoncap.c index 59bf3c1674c8..bacc1111d871 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -473,7 +473,7 @@ static bool validheader(size_t size, const struct vfs_cap_data *cap) * * If all is ok, we return the new size, on error return < 0. */ -int cap_convert_nscap(struct dentry *dentry, void **ivalue, size_t size) +int cap_convert_nscap(struct dentry *dentry, const void **ivalue, size_t size) { struct vfs_ns_cap_data *nscap; uid_t nsrootid; @@ -516,7 +516,6 @@ int cap_convert_nscap(struct dentry *dentry, void **ivalue, size_t size) nscap->magic_etc = cpu_to_le32(nsmagic); memcpy(&nscap->data, &cap->data, sizeof(__le32) * 2 * VFS_CAP_U32); - kvfree(*ivalue); *ivalue = nscap; return newsize; } |