On Thu, Oct 03, 2013 at 07:24:06PM -0700, Alexei Starovoitov wrote:
> diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c
> index 7092392..a5df511 100644
> --- a/arch/s390/net/bpf_jit_comp.c
> +++ b/arch/s390/net/bpf_jit_comp.c
> @@ -881,7 +881,9 @@ void bpf_jit_free(struct sk_filter *fp)
>       struct bpf_binary_header *header = (void *)addr;
> 
>       if (fp->bpf_func == sk_run_filter)
> -             return;
> +             goto free_filter;
>       set_memory_rw(addr, header->pages);
>       module_free(NULL, header);
> +free_filter:
> +     kfree(fp);
>  }

For the s390 part:

Acked-by: Heiko Carstens <heiko.carst...@de.ibm.com>

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to