From: Balaji T K Date: Mon, 19 Nov 2012 16:29:55 +0000 (+0530) Subject: mmc: omap_hsmmc: Fix Oops in case of data errors X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~96^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25e1897bf59b917a696b84b8cf28a5373157404d;p=pandora-kernel.git mmc: omap_hsmmc: Fix Oops in case of data errors ae4bf788ee9 ("mmc: omap_hsmmc: consolidate error report handling of HSMMC IRQ") sets both end_cmd and end_trans to 1. Setting end_cmd to 1 for Data Timeout/CRC leads to NULL pointer dereference of host->cmd as the command complete has previously been handled. Set end_cmd only in case of command Timeout/CRC. Moreover host->cmd->error should not be updated on data error case, only host->data->error needs to be updated. Signed-off-by: Balaji T K Reviewed-by: Felipe Balbi Signed-off-by: Venkatraman S Signed-off-by: Chris Ball --- Reading git-diff-tree failed