From: Mathias Krause Date: Sun, 30 Jan 2011 09:31:48 +0000 (+0100) Subject: mtd: phram: fix memory leak X-Git-Tag: v2.6.39-rc1~40^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f17f12ce9dd6ec0a8e1f415ecdbaebfce0207464;p=pandora-kernel.git mtd: phram: fix memory leak Commit 4f678a58 (mtd: fix memory leaks in phram_setup) missed two cases where the memory allocated for name would be leaked. This commit frees the memory when register_device() fails and on unregister_devices(). Signed-off-by: Mathias Krause Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed