All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: brakmo@fb.com
Cc: netdev@vger.kernel.org, kernel-team@fb.com, ast@fb.com,
	daniel@iogearbox.net
Subject: Re: [PATCH net-next V2] bpf: fix return in load_bpf_file
Date: Wed, 05 Jul 2017 09:05:46 +0100 (WEST)	[thread overview]
Message-ID: <20170705.090546.645154914190164159.davem@davemloft.net> (raw)
In-Reply-To: <20170704225750.125603-1-brakmo@fb.com>

From: Lawrence Brakmo <brakmo@fb.com>
Date: Tue, 4 Jul 2017 15:57:50 -0700

> The function load_bpf_file ignores the return value of
> load_and_attach(), so even if load_and_attach() returns an error,
> load_bpf_file() will return 0.
> 
> Now, load_bpf_file() can call load_and_attach() multiple times and some
> can succeed and some could fail. I think the correct behavor is to
> return error on the first failed load_and_attach().
> 
> v2: Added missing SOB
> 
> Signed-off-by: Lawrence Brakmo <brakmo@fb.com>

Applied.

      reply	other threads:[~2017-07-05  8:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-04 22:57 [PATCH net-next V2] bpf: fix return in load_bpf_file Lawrence Brakmo
2017-07-05  8:05 ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170705.090546.645154914190164159.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=ast@fb.com \
    --cc=brakmo@fb.com \
    --cc=daniel@iogearbox.net \
    --cc=kernel-team@fb.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.