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

Jakub Kicinski kuba at kernel.org
Wed Feb 25 02:18:11 UTC 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-stm32 mailing list