# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.636 -> 1.637 # drivers/ide24/ide-probe.c 1.1 -> 1.2 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/07/09 axboe@burns.home.kernel.dk 1.637 # fix driverfs oops on boot, due to some parts of gendisk being unitialized # -------------------------------------------- # diff -Nru a/drivers/ide24/ide-probe.c b/drivers/ide24/ide-probe.c --- a/drivers/ide24/ide-probe.c Tue Jul 9 15:51:23 2002 +++ b/drivers/ide24/ide-probe.c Tue Jul 9 15:51:23 2002 @@ -830,6 +830,7 @@ gd = kmalloc (sizeof(struct gendisk), GFP_KERNEL); if (!gd) goto err_kmalloc_gd; + memset(gd, 0, sizeof(*gd)); gd->sizes = kmalloc (minors * sizeof(int), GFP_KERNEL); if (!gd->sizes) goto err_kmalloc_gd_sizes;