Balaji T K 25e1897bf5 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 <balajitk@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
2012-12-06 13:54:54 -05:00
..
2012-10-10 10:58:42 +09:00
2011-12-07 22:02:05 +00:00
2012-10-10 10:58:42 +09:00
2012-12-06 13:54:54 -05:00
2012-09-04 13:58:29 -04:00
2009-03-24 21:30:03 +01:00
2012-12-06 13:54:44 -05:00
2012-09-20 14:54:57 -07:00
2012-10-10 10:58:42 +09:00
2009-10-01 16:11:15 -07:00
2012-11-07 15:02:03 -05:00
2012-12-06 13:54:51 -05:00
2012-10-11 10:21:48 +09:00
2012-10-10 10:58:42 +09:00