[PATCH] bdev: fix ->bd_part_count leak
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 8 Dec 2006 10:36:18 +0000 (02:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:28:39 +0000 (08:28 -0800)
commitc48f70c3d046f021b1c22438604ef2a583380eca
tree88d38aeafa299c15d797cde4a2ef6afd81b82f07
parentd63a5a74dee87883fda6b7d170244acaac5b05e8
[PATCH] bdev: fix ->bd_part_count leak

Don't leak a ->bd_part_count when the partition open fails with -ENXIO.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/block_dev.c