Skip to content
Commit 31bd8fbb authored by Libo Chen's avatar Libo Chen Committed by Linus Torvalds
Browse files

drivers/cdrom/gdrom.c: fix device number leak



Without this patch, gdrom_major will leak when gd.cd_info alloc fails.

Signed-off-by: default avatarLibo Chen <libo.chen@huawei.com>
Cc: Jens Axboe <axboe@kernel.dk>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4a184b4f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment