bridge: netfilter: fix update_pmtu crash with GRE
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 25 Nov 2008 00:06:50 +0000 (16:06 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Mar 2009 00:52:41 +0000 (17:52 -0700)
commitb82b59ae48f1a634456fbaff15bb33b52f581ac7
tree88c30e0a5abb10a406b2fdd3f54a2c7d569d5011
parent411b0df1bd018e949d41ab19fbf8dcb6a63e8ab3
bridge: netfilter: fix update_pmtu crash with GRE

[ Upstream commit 631339f1e544a4d39a63cfe6708c5bddcd5a2c48 ]

As GRE tries to call the update_pmtu function on skb->dst and
bridge supplies an skb->dst that has a NULL ops field, all is
not well.

This patch fixes this by giving the bridge device an ops field
with an update_pmtu function.  For the moment I've left all
other fields blank but we can fill them in later should the
need arise.

Based on report and patch by Philip Craig.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/bridge/br_netfilter.c