From 25e1897bf59b917a696b84b8cf28a5373157404d Mon Sep 17 00:00:00 2001 From: Balaji T K Date: Mon, 19 Nov 2012 21:59:55 +0530 Subject: [PATCH] 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-format-patch failed