]> git.karo-electronics.de Git - karo-tx-linux.git/commit
floppy: properly handle failure on add_disk loop
authorHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Mon, 27 Aug 2012 23:56:54 +0000 (20:56 -0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 3 Sep 2012 13:56:10 +0000 (15:56 +0200)
commit6932babe88ca5beec02b40db68100fc5ccb5d321
tree177532673a82f20f96d035b154ad055b007383f1
parentb33d002f4b6bae912463e5a66387c498aa69b6fe
floppy: properly handle failure on add_disk loop

On floppy initialization, if something failed inside the loop we call
add_disk, there was no cleanup of previous iterations in the error
handling.

Cc: stable@vger.kernel.org
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/block/floppy.c