mtd/maps/pismo: remove dangling pointer and a leak
authorWolfram Sang <w.sang@pengutronix.de>
Sat, 20 Mar 2010 15:31:46 +0000 (15:31 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 21 Mar 2010 08:28:34 +0000 (08:28 +0000)
commit395b228858778d3c44f7c413693a6acaa8bb62dc
tree89abea4e16319b41452217f49a20a810d30b50c5
parent4d682420cead1ce06d8cd44ae193414404f0e7f5
mtd/maps/pismo: remove dangling pointer and a leak

While looking for drivers which forgot to clear i2c_clientdata before freeing
the data structure it points to, I found that the pismo driver even has a leak
on the probe error path.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/pismo.c