]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2bad3ecfd3ba83f2189ddff85bf23f0d179f1d5f
tree43ed41f00fd81354ced9e0bab29b19a78ec6e157
parent2ae07c562d74d8175f530534d98e21a5709a7648
mmc: card: Avoid null pointer dereference

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>
drivers/mmc/card/block.c