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)
commit057cc8c9005e23330e368afd18839ce3764dc0af
tree693d65147bbb90c0725c0c24b2c4ecf62d0447fb
parent67de8acdd375e6f0d4ee9aa5745b9f9b329980b7
r8152: fix accessing unset transport header

A warning is triggered by commit 66e4c8d95008 ("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: 66e4c8d95008 ("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