• Andrew Morton's avatar
    [PATCH] register_chrdev_region() leak and race fix · a9007553
    Andrew Morton authored
    - If two CPUs run register_chrdev_region(major == 0) at the same time they
      can get the same major.
    
      Fix that by extending the lock coverage.
    
    - local variable `cd' was leaky on an error path.
    
    - Add some API commentary.
    a9007553
char_dev.c 5.56 KB