linux/drivers/infiniband/ulp
Nicolas Dichtel 6a3c946b20 net: don't call update_pmtu unconditionally
commit f15ca723c1 upstream.

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: 52a589d51f ("geneve: update skb dst pmtu on tx path")
Fixes: a93bf0ff44 ("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>
Cc: Thomas Deutschmann <whissi@gentoo.org>
Cc: Eddie Chapman <eddie@ehuk.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2018-05-09 09:51:48 +02:00
..
ipoib net: don't call update_pmtu unconditionally 2018-05-09 09:51:48 +02:00
iser IB: Correct MR length field to be 64-bit 2017-09-25 11:47:23 -04:00
isert iser-target: avoid reinitializing rdma contexts for isert commands 2018-03-24 11:01:25 +01:00
opa_vnic IB/opa_vnic: Properly return the total MACs in UC MAC list 2017-12-25 14:26:30 +01:00
srp IB/srp: Fix completion vector assignment algorithm 2018-04-24 09:36:32 +02:00
srpt IB/srpt: Fix ACL lookup during login 2018-01-17 09:45:17 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00