All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH] i40e: Use correct buffer size
@ 2023-11-12 11:01 ` Kunwu Chan
  0 siblings, 0 replies; 23+ 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: netdev, intel-wired-lan, linux-kernel, Kunwu Chan, 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

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

^ permalink raw reply related	[flat|nested] 23+ messages in thread
* [Intel-wired-lan] [PATCH] i40e: Use correct buffer size
@ 2023-11-12 10:57 Kunwu Chan
  0 siblings, 0 replies; 23+ messages in thread
From: Kunwu Chan @ 2023-11-12 10:57 UTC (permalink / raw)
  To: jesse.brandeburg, anthony.l.nguyen, davem, edumazet, kuba, pabeni,
	jeffrey.t.kirsher, shannon.nelson
  Cc: netdev, intel-wired-lan, linux-kernel, Kunwu Chan, 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..d3f07cecfe57 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 = 513;
 	char *buf;
 	int len;
 
-- 
2.34.1

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

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

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.