]> 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, 27 Jun 2013 23:51:12 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:21 +0000 (16:37 +1000)
commit95ebab7ddee739e249887a0c584e19db63f10b50
tree52eeed4eca5865630bec97feb9d170c2479c8b25
parent8609e75680f64844530d902820695dc515009945
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