]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:47:00 +0000 (16:47 +0000)
commit5b4478f5dabb7f764e2fce480b47204e06095a73
treeaaa84e73da8e40f2f25752059feed4f0df326e3f
parentae1ab6ee65fe4cf7d6752b5aefffd97fc84984b2
floppy: properly handle failure on add_disk loop

commit d60e7ec18c3fb2cbf90969ccd42889eb2d03aef9 upstream.

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

Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/block/floppy.c