From: Kunwu Chan <chen...@kylinos.cn> Date: Fri, 8 Dec 2023 11:19:50 +0800
> The size of "i40e_dbg_command_buf" is 256, the size of "name" > depends on "IFNAMSIZ", plus a null character and format size, > the total size is more than 256. > > Improve readability and maintainability by replacing a hardcoded string > allocation and formatting by the use of the kasprintf() helper. > > Fixes: 02e9c290814c ("i40e: debugfs interface") > Suggested-by: Simon Horman <ho...@kernel.org> > Suggested-by: Alexander Lobakin <aleksander.loba...@intel.com> > Suggested-by: Tony Nguyen <anthony.l.ngu...@intel.com> > Cc: Kunwu Chan <kunwu.c...@hotmail.com> > Signed-off-by: Kunwu Chan <chen...@kylinos.cn> Reviewed-by: Alexander Lobakin <aleksander.loba...@intel.com> Thanks, Olek _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan