Skip to content

Commit 0f49ff0

Browse files
miniplidavem330
authored andcommitted
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 <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 98920ba commit 0f49ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/ptp_classifier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ EXPORT_SYMBOL_GPL(ptp_classify_raw);
8888

8989
void __init ptp_classifier_init(void)
9090
{
91-
static struct sock_filter ptp_filter[] = {
91+
static struct sock_filter ptp_filter[] __initdata = {
9292
{ 0x28, 0, 0, 0x0000000c },
9393
{ 0x15, 0, 12, 0x00000800 },
9494
{ 0x30, 0, 0, 0x00000017 },

0 commit comments

Comments
 (0)