]> git.baikalelectronics.ru Git - kernel.git/commit
net: sock: remove the unnecessary check in proto_register
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Thu, 22 Apr 2021 13:41:51 +0000 (21:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2021 20:10:03 +0000 (13:10 -0700)
commit76c3ff4cd6cecb14d7655756f20f9c298a79aff3
treeb90dd243db1b23d99371f9d9238d9dc9c62c52f7
parente81b14349ec02cc78fc0edc3200995f9a8a89e91
net: sock: remove the unnecessary check in proto_register

tw_prot_cleanup will check the twsk_prot.

Fixes: a5ec3d6e19e3 ("net: Fix potential memory leak in proto_register()")
Cc: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c