]> 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)
commit89ab24cdd8833238975f781cc4ecf986a5a30fd8
treeb90dd243db1b23d99371f9d9238d9dc9c62c52f7
parent9938750b8ae45728a4aefe3511944a56bff22aeb
net: sock: remove the unnecessary check in proto_register

tw_prot_cleanup will check the twsk_prot.

Fixes: a9197cca4e37 ("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