[PATCH] register_blkdev() fixes
- 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.
Showing
Please register or sign in to comment