[PATCH] drm/xe/xe_gt_idle: Drop redundant newline in name

Dixit, Ashutosh ashutosh.dixit at intel.com
Fri Feb 2 22:49:30 UTC 2024


On Fri, 02 Feb 2024 14:35:25 -0800, Ashutosh Dixit wrote:
>
> Newline in name is redunant and produces an unnecessary empty line during
> 'cat name'.
>
> Fixes: 27a1a1e2e47d ("drm/xe: stringify the argument to avoid potential vulnerability")
> Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
> ---
>  drivers/gpu/drm/xe/xe_gt_idle.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_idle.c b/drivers/gpu/drm/xe/xe_gt_idle.c
> index 9358f73368896..42fdc7f688d0e 100644
> --- a/drivers/gpu/drm/xe/xe_gt_idle.c
> +++ b/drivers/gpu/drm/xe/xe_gt_idle.c
> @@ -87,7 +87,7 @@ static ssize_t name_show(struct device *dev,
>  {
>	struct xe_gt_idle *gtidle = dev_to_gtidle(dev);
>
> -	return sysfs_emit(buff, "%s\n", gtidle->name);
> +	return sysfs_emit(buff, "%s", gtidle->name);

Sorry, please ignore this patch. The issue is there but the patch is incorrect.


More information about the Intel-xe mailing list