aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/s390/net/bpf_jit_comp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c
index d5f10a43a58f..709239285869 100644
--- a/arch/s390/net/bpf_jit_comp.c
+++ b/arch/s390/net/bpf_jit_comp.c
@@ -805,7 +805,7 @@ static struct bpf_binary_header *bpf_alloc_binary(unsigned int bpfsize,
805 return NULL; 805 return NULL;
806 memset(header, 0, sz); 806 memset(header, 0, sz);
807 header->pages = sz / PAGE_SIZE; 807 header->pages = sz / PAGE_SIZE;
808 hole = sz - bpfsize + sizeof(*header); 808 hole = sz - (bpfsize + sizeof(*header));
809 /* Insert random number of illegal instructions before BPF code 809 /* Insert random number of illegal instructions before BPF code
810 * and make sure the first instruction starts at an even address. 810 * and make sure the first instruction starts at an even address.
811 */ 811 */