• David S. Miller's avatar
    [PATCH] block device oopses on shutdown in 2.5.x · 1fa88d15
    David S. Miller authored
    The partition code registers a generic device for disks
    which have a dev->driver non-NULL but whose dev->driver->remove
    points into outer space.  So when reboot happens --> OOPS
    in drivers/base/power.c:device_shutdown()
    
    Ok, amusingly in my case dev->driver == &scsi_done(), hehe :-)
    
    Two cases of uninitialized memory spotted, here is the patch.
    1fa88d15
sg.c 87.4 KB