Skip to contentSkip to conversation

net/natsemi: Fix module parameter permissions

PATCH Applied Jean Delvare 2 participants 2 messages Jul 8, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/natsemi: Fix module parameter permissions

The third parameter of module_param is supposed to represent sysfs file permissions. A value of "1" leads to the following:

$ ls -l /sys/module/natsemi/parameters/
total 0
---------x 1 root root 4096 Jul  8 09:46 dspcfg_workaround

I am changing it to "0" to align with the other module parameters in this driver.

Cc Tim Hockin <[email protected]>
Cc Mark Brown <[email protected]>
---
 drivers/net/natsemi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/natsemi.c +1 -1
@@ -140,7 +140,7 @@ MODULE_LICENSE("GPL");
 module_param(mtu, int, 0);
 module_param(debug, int, 0);
 module_param(rx_copybreak, int, 0);
-module_param(dspcfg_workaround, int, 1);
+module_param(dspcfg_workaround, int, 0);
 module_param_array(options, int, NULL, 0);
 module_param_array(full_duplex, int, NULL, 0);
 MODULE_PARM_DESC(mtu, "DP8381x MTU (all boards)");
Signature · 2 lines
Jean Delvare
Suse L3
maintainer Applied
#1 lore raw

From: Jean Delvare <[email protected]>
Date: Fri, 8 Jul 2011 11:01:28 +0200

Quoted 11 lines

The third parameter of module_param is supposed to represent sysfs file permissions. A value of "1" leads to the following:

$ ls -l /sys/module/natsemi/parameters/
total 0
---------x 1 root root 4096 Jul  8 09:46 dspcfg_workaround

I am changing it to "0" to align with the other module parameters in this driver.

Applied, thanks.