r8169: fix accessing unset transport header
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 5 Jul 2022 19:15:22 +0000 (21:15 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jul 2022 02:53:21 +0000 (19:53 -0700)
commitfaa4e04e5e140a6d02260289a8fba8fd8d7a3003
tree4ac2e645ab27bb563211c3c87889130ea82bf477
parent148ca04518070910739dfc4eeda765057856403d
r8169: fix accessing unset transport header

66e4c8d95008 ("net: warn if transport header was not set") added
a check that triggers a warning in r8169, see [0].

The commit referenced in the Fixes tag refers to the change from
which the patch applies cleanly, there's nothing wrong with this
commit. It seems the actual issue (not bug, because the warning
is harmless here) was introduced with bdfa4ed68187
("r8169: use Giant Send").

[0] https://bugzilla.kernel.org/show_bug.cgi?id=216157

Fixes: 8d520b4de3ed ("r8169: work around RTL8125 UDP hw bug")
Reported-by: Erhard F. <erhard_f@mailbox.org>
Tested-by: Erhard F. <erhard_f@mailbox.org>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/1b2c2b29-3dc0-f7b6-5694-97ec526d51a0@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c