]> git.baikalelectronics.ru Git - kernel.git/commit
sock_diag: fix autoloading of the raw_diag module
authorAndrei Vagin <avagin@gmail.com>
Mon, 5 Nov 2018 06:37:15 +0000 (22:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Nov 2018 01:09:19 +0000 (17:09 -0800)
commite92752219ddb79ee90dad070077bbd97fdc56ff4
tree360fae225ac0505ee880a8b7d4b82295c9d94d22
parent5d392e70c984f812d2813473ace15285873aef82
sock_diag: fix autoloading of the raw_diag module

IPPROTO_RAW isn't registred as an inet protocol, so
inet_protos[protocol] is always NULL for it.

Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Xin Long <lucien.xin@gmail.com>
Fixes: d5bd2456ba45 ("sock_diag: request _diag module only when the family or proto has been registered")
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c