Skip to content

Commit

Permalink
net: ptp: mark filter as __initdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mathias Krause authored and David S. Miller committed May 13, 2014
1 parent 98920ba commit 0f49ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/ptp_classifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 0f49ff0

Please sign in to comment.