Re: [PATCH] [PATCH v3] sock: fix potential memory leak in proto_register()
From: David Miller
Date: Sat Aug 24 2019 - 19:33:35 EST
From: zhanglin <zhang.lin16@xxxxxxxxxx>
Date: Fri, 23 Aug 2019 09:14:11 +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.
>
> Changes since v2:
> * Propagate the error code properly
>
> Signed-off-by: zhanglin <zhang.lin16@xxxxxxxxxx>
Applied.