From: Linas Vepstas Date: Tue, 10 Oct 2006 20:59:02 +0000 (-0500) Subject: [PATCH] Spidernet module parm permissions X-Git-Tag: v2.6.19-rc2~23^2~24 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e2874f2e8c3695953b9ec26d396d678a7128ee64;p=linux-2.6-omap-h63xx.git [PATCH] Spidernet module parm permissions The module param permsissions should bw read-only, not writable. From: James K Lewis Signed-off-by: James K Lewis Signed-off-by: Linas Vepstas Cc: Arnd Bergmann Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index 96dafb0f563..ff409a10274 100644 --- a/drivers/net/spider_net.c +++ b/drivers/net/spider_net.c @@ -60,8 +60,8 @@ MODULE_VERSION(VERSION); static int rx_descriptors = SPIDER_NET_RX_DESCRIPTORS_DEFAULT; static int tx_descriptors = SPIDER_NET_TX_DESCRIPTORS_DEFAULT; -module_param(rx_descriptors, int, 0644); -module_param(tx_descriptors, int, 0644); +module_param(rx_descriptors, int, 0444); +module_param(tx_descriptors, int, 0444); MODULE_PARM_DESC(rx_descriptors, "number of descriptors used " \ "in rx chains");