commit | efb842c45e667332774196bd5a1d539d048159cc | [log] [tgz] |
---|---|---|
author | wangweidong <wangweidong1@huawei.com> | Wed Feb 12 09:44:44 2014 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Feb 13 17:08:29 2014 -0500 |
tree | 6b4d1df5479cc9b9fe7c45f65bf4ff7f3a48d06e | |
parent | 22a1f5140ed69baa5906ce9b2b9143478f5a4da0 [diff] |
sctp: optimize the sctp_sysctl_net_register Here, when the net is init_net, we needn't to kmemdup the ctl_table again. So add a check for net. Also we can save some memory. Signed-off-by: Wang Weidong <wangweidong1@huawei.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>