diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-11 02:50:05 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-11 02:50:05 -0500 |
| commit | 73cf7e111ed69d8e1b59a3ae41b14bc77215e9ee (patch) | |
| tree | 02cd3308d328bce9cf97bf2c1c9d5e932103ebfe /kernel/bpf | |
| parent | 328257099077e8affd438c179d8a938948de2e7f (diff) | |
| parent | 50c4c4e268a2d7a3e58ebb698ac74da0de40ae36 (diff) | |
Merge 4.15-rc3 into driver-core-next
We want the fixes and changes in here for testing.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/bpf')
| -rw-r--r-- | kernel/bpf/core.c | 3 | ||||
| -rw-r--r-- | kernel/bpf/offload.c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index b9f8686a84cf..86b50aa26ee8 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c | |||
| @@ -1447,7 +1447,8 @@ int bpf_prog_array_length(struct bpf_prog_array __rcu *progs) | |||
| 1447 | rcu_read_lock(); | 1447 | rcu_read_lock(); |
| 1448 | prog = rcu_dereference(progs)->progs; | 1448 | prog = rcu_dereference(progs)->progs; |
| 1449 | for (; *prog; prog++) | 1449 | for (; *prog; prog++) |
| 1450 | cnt++; | 1450 | if (*prog != &dummy_bpf_prog.prog) |
| 1451 | cnt++; | ||
| 1451 | rcu_read_unlock(); | 1452 | rcu_read_unlock(); |
| 1452 | return cnt; | 1453 | return cnt; |
| 1453 | } | 1454 | } |
diff --git a/kernel/bpf/offload.c b/kernel/bpf/offload.c index 68ec884440b7..8455b89d1bbf 100644 --- a/kernel/bpf/offload.c +++ b/kernel/bpf/offload.c | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2017 Netronome Systems, Inc. | ||
| 3 | * | ||
| 4 | * This software is licensed under the GNU General License Version 2, | ||
| 5 | * June 1991 as shown in the file COPYING in the top-level directory of this | ||
| 6 | * source tree. | ||
| 7 | * | ||
| 8 | * THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" | ||
| 9 | * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, | ||
| 10 | * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
| 11 | * FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE | ||
| 12 | * OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME | ||
| 13 | * THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | ||
| 14 | */ | ||
| 15 | |||
| 1 | #include <linux/bpf.h> | 16 | #include <linux/bpf.h> |
| 2 | #include <linux/bpf_verifier.h> | 17 | #include <linux/bpf_verifier.h> |
| 3 | #include <linux/bug.h> | 18 | #include <linux/bug.h> |
