[PATCH 6/7] drivers: Repace get_task_comm() with %pTN

Jiri Slaby jirislaby at kernel.org
Fri Dec 13 07:48:02 UTC 2024


On 13. 12. 24, 6:46, Yafang Shao wrote:
> Since task->comm is guaranteed to be NUL-terminated, we can print it
> directly without the need to copy it into a separate buffer. This
> simplifies the code and avoids unnecessary operations.
> 
> Signed-off-by: Yafang Shao <laoar.shao at gmail.com>
> Cc: Ofir Bitton <obitton at habana.ai>
> Cc: Oded Gabbay <ogabbay at kernel.org>
> Cc: Jani Nikula <jani.nikula at linux.intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Tvrtko Ursulin <tursulin at ursulin.net>
> Cc: David Airlie <airlied at gmail.com>
> Cc: Simona Vetter <simona at ffwll.ch>
> Cc: Karol Herbst <kherbst at redhat.com>
> Cc: Lyude Paul <lyude at redhat.com>
> Cc: Danilo Krummrich <dakr at redhat.com>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Cc: Jiri Slaby <jirislaby at kernel.org>
> ---
>   drivers/accel/habanalabs/common/context.c         |  5 ++---
>   .../accel/habanalabs/common/habanalabs_ioctl.c    | 15 +++++----------
>   .../gpu/drm/i915/display/intel_display_driver.c   | 10 ++++------
>   drivers/gpu/drm/nouveau/nouveau_chan.c            |  4 +---
>   drivers/gpu/drm/nouveau/nouveau_drm.c             |  7 +++----
>   drivers/tty/tty_io.c                              |  5 ++---

FOr tty:
Reviewed-by: Jiri Slaby <jirislaby at kernel.org>

thanks,
-- 
js
suse labs



More information about the Linux-security-module-archive mailing list