[patch 4/5] hv: make vmbus_loglevel writeable

Olaf Hering
2011-04-16T16:51:33Z

[-- Attachment #1: bug679942-vmbus_loglevel.patch --]
[-- Type: text/plain, Size: 713 bytes --]

make /sys/module/hv_vmbus/parameters/vmbus_loglevel writeable by root.

Signed-off-by: Olaf Hering <olaf@aepfle.de>

---
compile tested.

drivers/staging/hv/vmbus_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-next/drivers/staging/hv/vmbus_drv.c
===================================================================
--- linux-next.orig/drivers/staging/hv/vmbus_drv.c
+++ linux-next/drivers/staging/hv/vmbus_drv.c
@@ -827,7 +827,7 @@ static void __exit hv_pci_exit(void)

MODULE_LICENSE("GPL");
MODULE_VERSION(HV_DRV_VERSION);
-module_param(vmbus_loglevel, int, S_IRUGO);
+module_param(vmbus_loglevel, int, S_IRUGO|S_IWUSR);

module_init(hv_pci_init);
module_exit(hv_pci_exit);