• James Bottomley's avatar
    [PATCH] fix SCSI driverfs for IDE panic on boot. · 6fe152cf
    James Bottomley authored
    This panic was reported to lkml by Anton Altaparmakov.  The code added to
    partitions/check.c to add partitions to driverfs requires preparation by the
    calling entity.  There's a NULL pointer check to see if the calling entity
    actually did the preparation, but IDE forgets to clear the area it kmalloc's
    for struct genhd so the pointer contains junk.
    
    The fix is just to clear the struct genhd before IDE uses it.
    6fe152cf
probe.c 35.4 KB