Skip to content
Snippets Groups Projects
Commit b45ce321 authored by zhanglin's avatar zhanglin Committed by David S. Miller
Browse files

sock: fix potential memory leak in proto_register()


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: default avatarzhanglin <zhang.lin16@zte.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d37fb975
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment