]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/cdrom/gdrom.c: fix device number leak
authorLibo Chen <clbchenlibo.chen@huawei.com>
Wed, 19 Jun 2013 00:05:43 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:51 +0000 (17:12 +1000)
commite693df9f20e4bff98494b409616af28e6eb50625
treeaca310d37528ed934a047512a51e7a71bd18ba27
parent46eef7b36c41a3e259fedf493c1ab121503ac5c0
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>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/cdrom/gdrom.c