Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mathias Krause and committed by
David S. Miller
0f49ff07 98920ba6

+1 -1
+1 -1
net/core/ptp_classifier.c
··· 88 88 89 89 void __init ptp_classifier_init(void) 90 90 { 91 - static struct sock_filter ptp_filter[] = { 91 + static struct sock_filter ptp_filter[] __initdata = { 92 92 { 0x28, 0, 0, 0x0000000c }, 93 93 { 0x15, 0, 12, 0x00000800 }, 94 94 { 0x30, 0, 0, 0x00000017 },