Re: [PATCH] sock: fix potential memory leak in proto_register()

From: David Miller
Date: Mon Aug 19 2019 - 21:12:27 EST


From: zhanglin <zhang.lin16@xxxxxxxxxx>
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@xxxxxxxxxx>

This won't build with CONFIG_PROC_FS disabled.