Nicolas Dichtel f15ca723c1 net: don't call update_pmtu unconditionally
Some dst_ops (e.g. md_dst_ops)) doesn't set this handler. It may result to:
"BUG: unable to handle kernel NULL pointer dereference at           (null)"

Let's add a helper to check if update_pmtu is available before calling it.

Fixes: 52a589d51f10 ("geneve: update skb dst pmtu on tx path")
Fixes: a93bf0ff4490 ("vxlan: update skb dst pmtu on tx path")
CC: Roman Kapl <code@rkapl.cz>
CC: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-01-25 16:27:34 -05:00
..
2017-07-11 06:08:58 -04:00
2017-11-15 13:46:33 -08:00
2017-04-05 10:15:20 +02:00
2017-08-31 14:42:19 -07:00
2017-11-13 10:34:54 +09:00
2017-10-11 09:49:34 +02:00
2017-11-16 10:49:00 +09:00
2017-12-11 14:10:06 -05:00
2017-10-07 21:22:58 +01:00
2017-09-29 06:19:32 +01:00
2017-11-08 16:12:33 +09:00
2017-12-05 14:37:13 -05:00
2017-12-28 14:28:22 -05:00
2018-01-03 11:33:37 -05:00