]> err.no Git - linux-2.6/commit
[PATCH] Fix failure paths in modules init in umem.c
authorNeilBrown <neilb@suse.de>
Thu, 1 Mar 2007 04:11:12 +0000 (20:11 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 1 Mar 2007 22:53:36 +0000 (14:53 -0800)
commit5a243e0e97edce27c12f87354fd987526ba1ce95
tree25911ba3555cefaab804a607988763fe28f6770c
parent9540f75b2bcfcc29ddcd839c3547a5f380bef323
[PATCH] Fix failure paths in modules init in umem.c

If register_blkdev() or alloc-disk fail in mm_init() after
pci_register_driver() succeeds, then mm_pci_driver is not unregistered
properly:

Cc: Philip Guo <pg@cs.stanford.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/umem.c