From: Roel Kluin Date: Mon, 10 Aug 2009 08:16:37 +0000 (+0200) Subject: mtd: pmcmsp-flash: fix error paths in init_msp_flash X-Git-Tag: v2.6.32-rc1~160^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c78c44362bc9b7c715a3c2119b89a407c1cb739;p=pandora-kernel.git mtd: pmcmsp-flash: fix error paths in init_msp_flash Cleanin up after errors in init_msp_flash(). Also cleanup_msp_flash() attempts to determine the size of msp_flash with `sizeof(msp_flash) / sizeof(struct mtd_info **)' This will not work since msp_flash is not an array. Signed-off-by: Roel Kluin Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed