Re: [PATCH net] sock_diag: request _diag module only when the family or proto has been registered From: Eric Dumazet <hidden> Date: 2017-10-17 11:35:18 On Tue, 2017-10-17 at 04:16 -0700, Eric Dumazet wrote:On Tue, 2017-10-17 at 13:13 +0800, Xin Long wrote: quoted+bool sock_is_registered(int family) +{ + return family < NPROTO && rcu_access_pointer(net_families[family]); +} EXPORT_SYMBOL() ? I take this back. Since there is one single user in vmlinux, no need yet Reviewed-by: Eric Dumazet <edumazet@google.com>
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help