diff options
author | Julian Wiedmann <jwi@linux.vnet.ibm.com> | 2017-08-07 14:28:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-07 21:24:37 +0300 |
commit | ec2c6726322f0d270bab477e4904bf9496f70ee5 (patch) | |
tree | 35d291579cbd082f0c0f4face4323a29d3510b68 /drivers/isdn | |
parent | c0e0fb837909f22b93fbb05e365be215a9e75d10 (diff) | |
download | linux-ec2c6726322f0d270bab477e4904bf9496f70ee5.tar.xz |
s390/qeth: fix L3 next-hop in xmit qeth hdr
On L3, the qeth_hdr struct needs to be filled with the next-hop
IP address.
The current code accesses rtable->rt_gateway without checking that
rtable is a valid address. The accidental access to a lowcore area
results in a random next-hop address in the qeth_hdr.
rtable (or more precisely, skb_dst(skb)) can be NULL in rare cases
(for instance together with AF_PACKET sockets).
This patch adds the missing NULL-ptr checks.
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com>
Fixes: 87e7597b5a3 qeth: Move away from using neighbour entries in qeth_l3_fill_header()
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions