]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/cdrom/gdrom.c: fix device number leak
authorLibo Chen <clbchenlibo.chen@huawei.com>
Thu, 23 May 2013 00:37:03 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:08:08 +0000 (16:08 +1000)
commit13242561e67db4d6afecdf55e8cc6cb3abe34642
tree3dddc9bc530aa8b22c40f1ad50d0a8955ec40c0b
parent54fd2565295b314dc73d78a5d132f7e8e786ec62
drivers/cdrom/gdrom.c: fix device number leak

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

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/cdrom/gdrom.c