All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cdrom: handle SYSCTL without PROC_FS
@ 2004-11-17 21:48 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2004-11-17 21:48 UTC (permalink / raw)
  To: lkml, akpm, axboe

[-- Attachment #1: Type: text/plain, Size: 229 bytes --]


Fixes oops (reference to cdrom_root_table->child->)
when CONFIG_SYSCTL=y and CONFIG_PROC_FS=n.

diffstat:=
  drivers/cdrom/cdrom.c |    2 --
  1 files changed, 2 deletions(-)

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
-- 

[-- Attachment #2: cdrom_sysctl_26.patch --]
[-- Type: text/x-patch, Size: 641 bytes --]

diff -Naurp ./drivers/cdrom/cdrom.c~cdrom_sysctl ./drivers/cdrom/cdrom.c
--- ./drivers/cdrom/cdrom.c~cdrom_sysctl	2004-11-16 13:33:30.177562576 -0800
+++ ./drivers/cdrom/cdrom.c	2004-11-17 13:23:54.831232024 -0800
@@ -3336,7 +3336,6 @@ ctl_table cdrom_cdrom_table[] = {
 
 /* Make sure that /proc/sys/dev is there */
 ctl_table cdrom_root_table[] = {
-#ifdef CONFIG_PROC_FS
 	{
 		.ctl_name	= CTL_DEV,
 		.procname	= "dev",
@@ -3344,7 +3343,6 @@ ctl_table cdrom_root_table[] = {
 		.mode		= 0555,
 		.child		= cdrom_cdrom_table,
 	},
-#endif /* CONFIG_PROC_FS */
 	{ .ctl_name = 0 }
 };
 static struct ctl_table_header *cdrom_sysctl_header;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-17 23:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-17 21:48 [PATCH] cdrom: handle SYSCTL without PROC_FS Randy.Dunlap

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.