mmc: card: Avoid null pointer dereference
authorPhilippe De Swert <philippedeswert@gmail.com>
Wed, 11 Apr 2012 20:31:45 +0000 (23:31 +0300)
committerChris Ball <cjb@laptop.org>
Thu, 10 May 2012 00:47:37 +0000 (20:47 -0400)
After the null check on md the code jumped to cmd_done, which then
will dereference md in mmc_blk_put. This patch avoids the possible
null pointer dereference in that case.

Signed-off-by: Philippe De Swert <philippedeswert@gmail.com>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>

No differences found