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

Jakub Kicinski kuba at kernel.org
Tue Feb 24 18:18:11 PST 2026


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.



More information about the linux-arm-kernel mailing list