diff options
author | Mathias Krause <minipli@googlemail.com> | 2014-05-11 00:23:28 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-13 21:17:24 +0400 |
commit | 0f49ff07025e8d6cd25bce5b623881739e04926e (patch) | |
tree | dce8c7408b8755c1a3a942a9bbe6558d36ee0b9e /net | |
parent | 98920ba6911c7d841375f91e0adfffbac4f782b5 (diff) | |
download | linux-0f49ff07025e8d6cd25bce5b623881739e04926e.tar.xz |
net: ptp: mark filter as __initdata
sk_unattached_filter_create() will copy the filter's instructions so we
don't need to have the master copy hanging around after initialization.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/ptp_classifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/ptp_classifier.c b/net/core/ptp_classifier.c index eaba0f68f860..37d86157b76e 100644 --- a/net/core/ptp_classifier.c +++ b/net/core/ptp_classifier.c @@ -88,7 +88,7 @@ EXPORT_SYMBOL_GPL(ptp_classify_raw); void __init ptp_classifier_init(void) { - static struct sock_filter ptp_filter[] = { + static struct sock_filter ptp_filter[] __initdata = { { 0x28, 0, 0, 0x0000000c }, { 0x15, 0, 12, 0x00000800 }, { 0x30, 0, 0, 0x00000017 }, |