Skip to contentSkip to conversation

PATCH] staging: fix a silly typo

PATCH Alan Cox 2 participants 2 messages Nov 30, 2009

Subsystems (2)
lore
Share & tools
lore

Alan Cox

author
#0 lore raw

Can this either get applied or Rusty's tree dropped. This has been broken for ages now, and at the point something like "sizeof" spelled wrongly gets into a tree and doesn't get caught by the submitter or fixed for weeks when pointed out something is badly wrong

--
staging: fix a silly typo

From: Alan Cox <[email protected]>

---

 drivers/staging/rtl8187se/r8180_core.c  |    2 +-
 drivers/staging/rtl8192su/r8192U_core.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8187se/r8180_core.c +1 -1
index 5a6cd60..d74bf70 100644
@@ -79,7 +79,7 @@ MODULE_AUTHOR("Andrea Merello <[email protected]>");
 MODULE_DESCRIPTION("Linux driver for Realtek RTL8180 / RTL8185 WiFi cards");
 
 
-module_param_string(ifname, ifname, sizef(ifname), S_IRUGO|S_IWUSR);
+module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR);
 module_param(hwseqnum,int, S_IRUGO|S_IWUSR);
 module_param(hwwep,int, S_IRUGO|S_IWUSR);
 module_param(channels,int, S_IRUGO|S_IWUSR);
drivers/staging/rtl8192su/r8192U_core.c +1 -1
index e24815f..0a052ea 100644
@@ -142,7 +142,7 @@ static int channels = 0x3fff;
 
 
 
-module_param_string(ifname, ifname, sizef(ifname), S_IRUGO|S_IWUSR);
+module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR);
 //module_param(hwseqnum,int, S_IRUGO|S_IWUSR);
 module_param(hwwep,int, S_IRUGO|S_IWUSR);
 module_param(channels,int, S_IRUGO|S_IWUSR);
#1 lore raw
Quoted 36 lines · Alan Cox

Can this either get applied or Rusty's tree dropped. This has been broken for ages now, and at the point something like "sizeof" spelled wrongly gets into a tree and doesn't get caught by the submitter or fixed for weeks when pointed out something is badly wrong

--
staging: fix a silly typo

From: Alan Cox <[email protected]>

---

 drivers/staging/rtl8187se/r8180_core.c  |    2 +-
 drivers/staging/rtl8192su/r8192U_core.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8187se/r8180_core.c +1 -1
index 5a6cd60..d74bf70 100644
@@ -79,7 +79,7 @@ MODULE_AUTHOR("Andrea Merello <[email protected]>");
 MODULE_DESCRIPTION("Linux driver for Realtek RTL8180 / RTL8185 WiFi cards");
 
 
-module_param_string(ifname, ifname, sizef(ifname), S_IRUGO|S_IWUSR);
+module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR);
 module_param(hwseqnum,int, S_IRUGO|S_IWUSR);
 module_param(hwwep,int, S_IRUGO|S_IWUSR);
 module_param(channels,int, S_IRUGO|S_IWUSR);
drivers/staging/rtl8192su/r8192U_core.c +0 -0
index e24815f..0a052ea 100644

drivers/staging/rtl8192su/r8192U_core.c static int channels = 0x3fff;

Quoted 9 lines
drivers/staging/rtl8192su/r8192U_core.c +1 -2
@@ -142,7 +142,7 @@ static int channels = 0x3fff;
 
 
 
-module_param_string(ifname, ifname, sizef(ifname), S_IRUGO|S_IWUSR);
+module_param_string(ifname, ifname, sizeof(ifname), S_IRUGO|S_IWUSR);
 //module_param(hwseqnum,int, S_IRUGO|S_IWUSR);
 module_param(hwwep,int, S_IRUGO|S_IWUSR);
 module_param(channels,int, S_IRUGO|S_IWUSR);
--

There is also a strcpt() that should be strcpy().

Signature · 1 line
~Randy