diff options
author | zhanglin <zhang.lin16@zte.com.cn> | 2019-08-22 21:14:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-24 19:33:14 -0400 |
commit | b45ce32135d1c82a5bf12aa56957c3fd27956057 (patch) | |
tree | 3d71b2aed3171ceb1cdcc3f1152da20b19fa2c62 /scripts/gen_compile_commands.py | |
parent | d37fb9758f76316a9dd9aaafffad726eb2bc020a (diff) |
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: zhanglin <zhang.lin16@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions