mmc: card: fix potential null dereference of 'idata'
authorVladimir Motyka <vladimir.motyka@gmail.com>
Wed, 11 May 2011 04:00:43 +0000 (00:00 -0400)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 03:53:49 +0000 (23:53 -0400)
commitaea253ecffecd38b5ab97edd73fbe2842a7de371
tree43ed3d608705c5a7fb5dbdbb8d75efa120f114ba
parentcf2b5eea1ea0ff9b3184bc6771bcb93a9fdcd1d9
mmc: card: fix potential null dereference of 'idata'

When allocation of idata failed there was a null dereference. Also avoid
calling kfree where it isn't needed.

Signed-off-by: Vladimir Motyka <vladimir.motyka@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c