]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
r8169: add tally counter fields added with RTL8125
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 17 Sep 2024 21:04:46 +0000 (23:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:46 +0000 (15:11 +0200)
commit21950321ad33d7613b1453f4c503d7b1871deb61
treec6cee9db91e0444ca8ea199c4200fd1f0f3f89f7
parente36d8907f3212123c4b9dff14a318cb44ff49941
r8169: add tally counter fields added with RTL8125

[ Upstream commit ced8e8b8f40accfcce4a2bbd8b150aa76d5eff9a ]

RTL8125 added fields to the tally counter, what may result in the chip
dma'ing these new fields to unallocated memory. Therefore make sure
that the allocated memory area is big enough to hold all of the
tally counter values, even if we use only parts of it.

Fixes: f1bce4ad2f1c ("r8169: add support for RTL8125")
Cc: stable@vger.kernel.org
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/741d26a9-2b2b-485d-91d9-ecb302e345b5@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c