From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jonghwan Choi <jhbird.choi@gmail.com>
Cc: Wei Yongjun <yongjun_wei@trendmicro.com.cn>,
stable@vger.kernel.org, netfilter@vger.kernel.org,
Jonghwan Choi <jhbird.choi@samsung.com>
Subject: Re: [PATCH 3.8-stable] netfilter: nfnetlink_queue: fix error return code in nfnetlink_queue_init()
Date: Sat, 13 Apr 2013 12:08:27 +0200 [thread overview]
Message-ID: <20130413100827.GA7230@localhost> (raw)
In-Reply-To: <1365779663-11862-1-git-send-email-jhbird.choi@samsung.com>
On Sat, Apr 13, 2013 at 12:14:23AM +0900, Jonghwan Choi wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> This patch looks like it should be in the 3.8-stable tree, should we apply
> it?
Please, hold on with this. I'm preparing a -stable batch.
> ------------------
>
> From: "Wei Yongjun <yongjun_wei@trendmicro.com.cn>"
>
> commit 558724a5b2a73ad0c7638e21e8dffc419d267b6c upstream
>
> Fix to return a negative error code from the error handling
> case instead of 0, as returned elsewhere in this function.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
> Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
> ---
> net/netfilter/nfnetlink_queue_core.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/net/netfilter/nfnetlink_queue_core.c b/net/netfilter/nfnetlink_queue_core.c
> index 3158d87..39006c9 100644
> --- a/net/netfilter/nfnetlink_queue_core.c
> +++ b/net/netfilter/nfnetlink_queue_core.c
> @@ -1064,8 +1064,10 @@ static int __init nfnetlink_queue_init(void)
>
> #ifdef CONFIG_PROC_FS
> if (!proc_create("nfnetlink_queue", 0440,
> - proc_net_netfilter, &nfqnl_file_ops))
> + proc_net_netfilter, &nfqnl_file_ops)) {
> + status = -ENOMEM;
> goto cleanup_subsys;
> + }
> #endif
>
> register_netdevice_notifier(&nfqnl_dev_notifier);
> --
> 1.7.10.4
>
next prev parent reply other threads:[~2013-04-13 10:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 15:14 [PATCH 3.8-stable] netfilter: nfnetlink_queue: fix error return code in nfnetlink_queue_init() Jonghwan Choi
2013-04-13 10:08 ` Pablo Neira Ayuso [this message]
2013-04-15 0:22 ` Jonghwan Choi
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=20130413100827.GA7230@localhost \
--to=pablo@netfilter.org \
--cc=jhbird.choi@gmail.com \
--cc=jhbird.choi@samsung.com \
--cc=netfilter@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=yongjun_wei@trendmicro.com.cn \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox