]> 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)
commit708b6c226f747d65cbe11b986b9f7e2383ff0663
tree0542cbc2f2ded9a66903630fe66662e412534eef
parente26c25b1362d2c461a0d345b4aab9664ea719853
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