From: Herton Ronaldo Krzesinski Date: Mon, 27 Aug 2012 23:56:54 +0000 (-0300) Subject: floppy: properly handle failure on add_disk loop X-Git-Tag: v3.2.34~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4478f5dabb7f764e2fce480b47204e06095a73;p=pandora-kernel.git 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 Signed-off-by: Jiri Kosina Signed-off-by: Jens Axboe [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed