linux/drivers/mmc/card
Ray Jui f662ae48ae mmc: fix host release issue after discard operation
Under function mmc_blk_issue_rq, after an MMC discard operation,
the MMC request data structure may be freed in memory. Later in
the same function, the check of req->cmd_flags & MMC_REQ_SPECIAL_MASK
is dangerous and invalid. It causes the MMC host not to be released
when it should.

This patch fixes the issue by marking the special request down before
the discard/flush operation.

Reported by: Harold (SoonYeal) Yang <haroldsy@broadcom.com>
Signed-off-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
2014-01-13 12:48:10 -05:00
..
block.c mmc: fix host release issue after discard operation 2014-01-13 12:48:10 -05:00
Kconfig tty: Added a CONFIG_TTY option to allow removal of TTY 2013-01-18 16:15:27 -08:00
Makefile mmc: Makefile: Fix EXTRA_CFLAGS assignment 2010-10-23 21:11:15 +08:00
mmc_test.c mmc: mmc_test: replace strict_strtol() with kstrtol_from_user() 2013-08-24 23:19:05 -04:00
queue.c ARM: 7797/1: mmc: Use dma_max_pfn(dev) helper for bounce_limit calculations 2013-10-31 14:49:27 +00:00
queue.h mmc: block: fix the host's claim-release in special request 2013-03-22 13:29:36 -04:00
sdio_uart.c TTY: add tty_port_tty_hangup helper 2013-03-18 16:24:29 -07:00