diff options
author | wangweidong <wangweidong1@huawei.com> | 2014-02-12 09:44:44 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-13 17:08:29 -0500 |
commit | efb842c45e667332774196bd5a1d539d048159cc (patch) | |
tree | 6b4d1df5479cc9b9fe7c45f65bf4ff7f3a48d06e /Documentation/networking | |
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>
Diffstat (limited to 'Documentation/networking')
0 files changed, 0 insertions, 0 deletions