• Andrew Morton's avatar
    [PATCH] register_blkdev() fixes · b548867b
    Andrew Morton authored
    - It was racy, if two threads try to register a blockdev with major=0 they
      could both choose the same major for different devices.
    
      Fix that by extending the coverage of the rwsem.
    
    - kmalloced local variable `p' was leaking on an error path.
    b548867b
genhd.c 14 KB