[PATCH v2] common/mlx5: fix the sysfs port name translation

Stephen Hemminger stephen at networkplumber.org
Wed Mar 22 15:59:46 CET 2023


On Wed, 22 Mar 2023 13:34:12 +0200
Bing Zhao <bingz at nvidia.com> wrote:

> +			tail_nl = strchr(port_name, '\r');
> +			if (tail_nl)
> +				*tail_nl = '\0';

This is a file provided by Linux kernel, there is no way
it could have a CR character.


More information about the stable mailing list