mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-24 22:16:14 +00:00
5ca8a4a03a
Backport patch that fixes memory disclosure in packet padding. The downstream driver supports statistics, so when a packet cannot be padded the statistics of dropped packets are incremented. The other patches do not introduce any functional changes. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Link: https://github.com/openwrt/openwrt/pull/16563 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
25 lines
784 B
Diff
25 lines
784 B
Diff
From 1f803c95693f140bed46cd5581b97592e20b723e Mon Sep 17 00:00:00 2001
|
|
From: Aleksander Jan Bajkowski <olek2@wp.pl>
|
|
Date: Thu, 15 Aug 2024 09:49:56 +0200
|
|
Subject: [PATCH] net: ethernet: lantiq_etop: remove unused variable
|
|
|
|
Remove a variable that has never been used.
|
|
|
|
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
|
|
Link: https://patch.msgid.link/20240815074956.155224-1-olek2@wp.pl
|
|
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
---
|
|
drivers/net/ethernet/lantiq_etop.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
--- a/drivers/net/ethernet/lantiq_etop.c
|
|
+++ b/drivers/net/ethernet/lantiq_etop.c
|
|
@@ -95,7 +95,6 @@ struct ltq_etop_priv {
|
|
struct mii_bus *mii_bus;
|
|
|
|
struct ltq_etop_chan ch[MAX_DMA_CHAN];
|
|
- int tx_free[MAX_DMA_CHAN >> 1];
|
|
|
|
int tx_burst_len;
|
|
int rx_burst_len;
|