]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: robustify qeth_get_ip_version()
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Wed, 20 Dec 2017 19:11:03 +0000 (20:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 20:23:45 +0000 (15:23 -0500)
commit01625fe825e9fbd44f8cdaee2ff2e12f4674ae88
tree0542cbc2f2ded9a66903630fe66662e412534eef
parent898fd9dbb7701aa7bea1c311e1c20d1c5ba7ba12
s390/qeth: robustify qeth_get_ip_version()

Instead of assuming that skb->data points to the Ethernet header, use
the right helper and struct to access the Ethertype field.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core.h