From: Franck Jullien Date: Wed, 24 Jul 2013 13:17:48 +0000 (+0200) Subject: mmc: fix null pointer use in mmc_blk_remove_req X-Git-Tag: v3.12-rc1~69^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8efb83a2f8518a6ffcc074177f8d659c5165ef37;p=pandora-kernel.git mmc: fix null pointer use in mmc_blk_remove_req A previous commit (fdfa20c1631210d0) reordered the shutdown sequence in mmc_blk_remove_req. However, mmc_cleanup_queue is now called before we get the card pointer, and mmc_cleanup_queue sets mq->card to NULL. This patch moves the card pointer assignment before mmc_cleanup_queue. Signed-off-by: Franck Jullien Signed-off-by: Chris Ball --- Reading git-diff-tree failed