diff options
author | 2016-11-28 08:34:10 +0100 | |
---|---|---|
committer | 2016-11-28 08:34:10 +0100 | |
commit | 0edbf9e55295585bbe9df61b646ca5bf80a8e1eb (patch) | |
tree | d9b6869ff7a245343a9b030511d4bfd18b00f192 /kernel/bpf/syscall.c | |
parent | usb: ohci-da8xx: rename driver to ohci-da8xx (diff) | |
parent | Linux 4.9-rc7 (diff) | |
download | wireguard-linux-0edbf9e55295585bbe9df61b646ca5bf80a8e1eb.tar.xz wireguard-linux-0edbf9e55295585bbe9df61b646ca5bf80a8e1eb.zip |
Merge 4.9-rc7 into usb-next
We want the USB fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/bpf/syscall.c')
-rw-r--r-- | kernel/bpf/syscall.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 228f962447a5..237f3d6a7ddc 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -194,7 +194,7 @@ static int map_create(union bpf_attr *attr) err = bpf_map_charge_memlock(map); if (err) - goto free_map; + goto free_map_nouncharge; err = bpf_map_new_fd(map); if (err < 0) @@ -204,6 +204,8 @@ static int map_create(union bpf_attr *attr) return err; free_map: + bpf_map_uncharge_memlock(map); +free_map_nouncharge: map->ops->map_free(map); return err; } |