]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
igc: fix missing update of skb->tail in igc_xmit_frame()
authorKohei Enju <kohei@enjuk.jp>
Sat, 14 Feb 2026 19:46:32 +0000 (19:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2026 10:08:54 +0000 (11:08 +0100)
commit79a230f90932adaf5bca90f29d91a74a2b07dcce
tree774c94b6305bf20e73953b83788e02aef6ed0e9c
parent3267bcb744ee8a2feabaa7ab69473f086f67fd71
igc: fix missing update of skb->tail in igc_xmit_frame()

[ Upstream commit 0ffba246652faf4a36aedc66059c2f94e4c83ea5 ]

igc_xmit_frame() misses updating skb->tail when the packet size is
shorter than the minimum one.
Use skb_put_padto() in alignment with other Intel Ethernet drivers.

Fixes: 0507ef8a0372 ("igc: Add transmit and receive fastpath and interrupt handlers")
Signed-off-by: Kohei Enju <kohei@enjuk.jp>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Tested-by: Avigail Dahan <avigailx.dahan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/igc/igc_main.c