Thread (5 messages) flat view 5 messages, 4 authors, 2026-02-25

Re: [PATCH net-next] net: stmmac: ptp: limit n_per_out

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-02-25 02:18:21
Also in: linux-arm-kernel

On Mon, 23 Feb 2026 12:20:47 +0000 Russell King (Oracle) wrote:
+	if (pps_out_num > STMMAC_PPS_MAX)
+		pps_out_num = STMMAC_PPS_MAX;
How would you feel about tossing a dev_info() / dev_warn() in here?
If nothing else if will prevent script kiddies from sending a patch
converting this if to

	pps_out_num = min(pps_out_num, STMMAC_PPS_MAX);

which presumably you don't prefer.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help