mmc: block: fixed NULL pointer dereference
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 13 Jul 2011 08:02:16 +0000 (17:02 +0900)
committerChris Ball <cjb@laptop.org>
Thu, 21 Jul 2011 14:35:00 +0000 (10:35 -0400)
commit393f9a08e2ee72e42379489a5781feaf9c406d5f
tree3b360c42c9449e4bcf320ade4c0048b98bfbe4d4
parent7937e878f91ccc32c09177f44cfdc45183d78605
mmc: block: fixed NULL pointer dereference

We already check for ongoing async transfers when handling discard
requests, but not in mmc_blk_issue_flush().  This patch fixes that
omission.

Tested with an SDHCI controller and eMMC4.41.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Per Forlin <per.forlin@linaro.org>
Cc: <stable@kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c