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>
This commit is contained in:
Vladimir Motyka 2011-05-11 00:00:43 -04:00 • committed by Chris Ball
commit aea253ecff