]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: fix accessing unset transport header
authorHayes Wang <hayeswang@realtek.com>
Wed, 13 Jul 2022 03:31:11 +0000 (11:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 13:52:49 +0000 (14:52 +0100)
commitdbe425078624f243321ef674e84d8ddeecbbc81b
tree693d65147bbb90c0725c0c24b2c4ecf62d0447fb
parent0277ee4ab62f744b99ee7c3734d899d4e2244731
r8152: fix accessing unset transport header

A warning is triggered by commit f588aa3f3718 ("net: warn if transport
header was not set"). The warning is harmless, because the value from
skb_transport_offset() is only used for skb_is_gso() is true or the
skb->ip_summed is equal to CHECKSUM_PARTIAL.

Fixes: f588aa3f3718 ("net: warn if transport header was not set")
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c