netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i40e: Use correct buffer size
@ 2023-11-12 11:01 Kunwu Chan
  2023-11-13  9:31 ` Simon Horman
  0 siblings, 1 reply; 11+ messages in thread
From: Kunwu Chan @ 2023-11-12 11:01 UTC (permalink / raw)
  To: jesse.brandeburg, anthony.l.nguyen, davem, edumazet, kuba, pabeni,
	jeffrey.t.kirsher, shannon.nelson
  Cc: kunwu.chan, netdev, linux-kernel, intel-wired-lan, Kunwu Chan

The size of "i40e_dbg_command_buf" is 256, the size of "name" is
at most 256, plus a null character and the format size,
the total size should be 516.

Fixes: 02e9c290814c ("i40e: debugfs interface")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
---
 drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c
index 999c9708def5..d42355fa7217 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c
@@ -72,7 +72,7 @@ static ssize_t i40e_dbg_command_read(struct file *filp, char __user *buffer,
 {
 	struct i40e_pf *pf = filp->private_data;
 	int bytes_not_copied;
-	int buf_size = 256;
+	int buf_size = 516;
 	char *buf;
 	int len;
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-11-22  6:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-12 11:01 [PATCH] i40e: Use correct buffer size Kunwu Chan
2023-11-13  9:31 ` Simon Horman
2023-11-15  3:10   ` Kunwu Chan
2023-11-15  3:14   ` [PATCH iwl-next] " Kunwu Chan
2023-11-15  9:21     ` Simon Horman
2023-11-15 15:39     ` Alexander Lobakin
2023-11-19 15:12       ` Kunwu Chan
2023-11-20 11:41         ` Alexander Lobakin
2023-11-21  2:12           ` Kunwu Chan
2023-11-21 11:15             ` Alexander Lobakin
2023-11-22  6:57               ` Kunwu Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).