From: David Miller <davem@davemloft.net>
To: zhang.lin16@zte.com.cn
Cc: ast@kernel.org, daniel@iogearbox.net, kafai@fb.com,
songliubraving@fb.com, yhs@fb.com, willemb@google.com,
edumazet@google.com, deepa.kernel@gmail.com, arnd@arndb.de,
dh.herrmann@gmail.com, gnault@redhat.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, bpf@vger.kernel.org,
xue.zhihong@zte.com.cn, wang.yi59@zte.com.cn,
jiang.xuexin@zte.com.cn
Subject: Re: [PATCH] sock: fix potential memory leak in proto_register()
Date: Mon, 19 Aug 2019 18:12:19 -0700 (PDT) [thread overview]
Message-ID: <20190819.181219.24181991280730634.davem@davemloft.net> (raw)
In-Reply-To: <1566178556-46071-1-git-send-email-zhang.lin16@zte.com.cn>
From: zhanglin <zhang.lin16@zte.com.cn>
Date: Mon, 19 Aug 2019 09:35:56 +0800
> If protocols registered exceeded PROTO_INUSE_NR, prot will be
> added to proto_list, but no available bit left for prot in
> proto_inuse_idx.
>
> Signed-off-by: zhanglin <zhang.lin16@zte.com.cn>
This won't build with CONFIG_PROC_FS disabled.
prev parent reply other threads:[~2019-08-20 1:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-19 1:35 [PATCH] sock: fix potential memory leak in proto_register() zhanglin
2019-08-20 1:12 ` 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=20190819.181219.24181991280730634.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=arnd@arndb.de \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=deepa.kernel@gmail.com \
--cc=dh.herrmann@gmail.com \
--cc=edumazet@google.com \
--cc=gnault@redhat.com \
--cc=jiang.xuexin@zte.com.cn \
--cc=kafai@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=songliubraving@fb.com \
--cc=wang.yi59@zte.com.cn \
--cc=willemb@google.com \
--cc=xue.zhihong@zte.com.cn \
--cc=yhs@fb.com \
--cc=zhang.lin16@zte.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;
as well as URLs for NNTP newsgroup(s).