]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] dm: fix alloc_dev error path
authorIshai Rabinovitz <ishai@mellanox.co.il>
Tue, 3 Oct 2006 08:15:22 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:14 +0000 (08:04 -0700)
commite3f6ac6123be6f4ba14d71af0da0e8d3d39c33ed
tree7b3924ea9e382e090ac31ed87b7d99ca9ca9cd70
parente90dae1f58d475b71bcc4eebf6d4fd5217ed85c7
[PATCH] dm: fix alloc_dev error path

While reading the code I found a bug in the error path in alloc_dev in dm.c

When blk_alloc_queue fails there is no call to free_minor.

This patch fixes the problem.

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm.c