From: Adrian Hunter Date: Fri, 24 Jul 2009 14:05:00 +0000 (+0300) Subject: UBI: fix double free on error path X-Git-Tag: v2.6.31-rc6~28^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7194e6f9c083e87171ddfc8b746f05e007f58132;p=pandora-kernel.git UBI: fix double free on error path If we fail in 'ubi_eba_init_scan()', we free 'ubi->volumes[i]->eba_tbl' in there, but also later free it in 'free_internal_volumes()'. Fix this by assigning NULL to 'ubi->volumes[i]->eba_tbl' after it is freed. Signed-off-by: Adrian Hunter Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed