mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-17 15:44:44 +02:00
omap24xx: Fix possible MMC null ptr deref
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25758 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
692399ddc8
commit
8bbe4d1e74
@ -0,0 +1,13 @@
|
|||||||
|
Index: linux-2.6.38-rc6/drivers/mmc/host/omap.c
|
||||||
|
===================================================================
|
||||||
|
--- linux-2.6.38-rc6.orig/drivers/mmc/host/omap.c 2011-02-27 16:56:51.714348509 +0100
|
||||||
|
+++ linux-2.6.38-rc6/drivers/mmc/host/omap.c 2011-02-27 16:57:30.796529124 +0100
|
||||||
|
@@ -832,7 +832,7 @@
|
||||||
|
return IRQ_HANDLED;
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (end_command)
|
||||||
|
+ if (end_command && host->cmd)
|
||||||
|
mmc_omap_cmd_done(host, host->cmd);
|
||||||
|
if (host->data != NULL) {
|
||||||
|
if (transfer_error)
|
Loading…
x
Reference in New Issue
Block a user