Mathias Krause f17f12ce9d 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 <minipli@googlemail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2011-03-11 14:22:43 +00:00
..
2011-01-20 17:02:14 -08:00
2011-01-13 08:03:09 -08:00
2011-01-20 17:02:14 -08:00
2011-01-18 12:22:54 -08:00
2011-01-20 21:37:29 +10:30
2011-03-11 14:22:43 +00:00
2011-01-12 04:59:44 -05:00
2011-01-14 12:38:16 +01:00
2011-01-10 08:51:44 -08:00
2011-01-12 05:14:15 -05:00
2011-01-20 17:02:14 -08:00