Dear all,

Haruo> When I installed Red Hat ES 2.1(kernel 2.4.9-e.12) for my PC,
Haruo> the issue of NULL pointer dereference in
Haruo> ide_revalidate_disk() occurred.
Haruo> If it understands about the root cause of this issue,
Haruo> Please let me know your idea.

I found the bug of a cdrom driver, as a result of debugging.
The correction patch is as follows. Is my correction right?

Regards,
Haruo

diff -Nru linux-2.4.9-e.12/drivers/cdrom/cdrom.c 
linux-2.4.9-e.12boot/drivers/cdrom/cdrom.c
--- linux-2.4.9-e.12/drivers/cdrom/cdrom.c    Tue Feb 11 13:11:07 2003
+++ linux-2.4.9-e.12boot/drivers/cdrom/cdrom.c     Thu Jul 31 02:08:52 2003
@@ -2720,7 +2720,7 @@
     int n_entries = CDROM_MAX_CDROMS / (sizeof(unsigned long) * 8);

     cdrom_numbers = kmalloc(n_entries * sizeof(unsigned long), GFP_KERNEL);
-
+    memset(cdrom_numbers, 0, n_entries * sizeof(unsigned long));
 #ifdef CONFIG_SYSCTL
     cdrom_sysctl_register();
 #endif



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to