mtip32xx: fix error handling in mtip_init()
commit24041232df8a8e96113ddd1f83a58f552f1f5968
authorRyosuke Saito <raitosyo@gmail.com>
Thu, 5 Apr 2012 14:09:34 +0000 (5 08:09 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:21 +0000 (12 09:32 -0700)
treedd7e93e0b00e09f5907abf34c6f9880e76484164
parent633935add06d8deb9fb2879fd06bbfd9df7e1a89
mtip32xx: fix error handling in mtip_init()

commit 6d27f09a6398ee086b11804aa3a16609876f0c7c upstream.

Ensure that block device is properly unregistered, if
pci_register_driver() fails.

Signed-off-by: Ryosuke Saito <raitosyo@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/mtip32xx/mtip32xx.c