• Andrew Morton's avatar
    [PATCH] Add error checking get_disk() · d99c48c6
    Andrew Morton authored
    Patch from Bob Miller <rem@osdl.org>
    
    The get_disk() function should check the return value from kobject_get()
    before passing it to to_disk().  This patch fixes this error.
    
    (Acked by Pat)
    d99c48c6
genhd.c 13.5 KB