summaryrefslogtreecommitdiff
path: root/target/linux/omap24xx
diff options
context:
space:
mode:
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-02-27 17:23:58 +0000
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-02-27 17:23:58 +0000
commit8bbe4d1e74df2df1e15e5d0b5ec6b33d6a125d93 (patch)
tree2757b1f334803e9e045c8f04566f85f51049582b /target/linux/omap24xx
parent692399ddc87cf0457808ab0e0fca26b15d18c0c9 (diff)
omap24xx: Fix possible MMC null ptr deref
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25758 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap24xx')
-rw-r--r--target/linux/omap24xx/patches-2.6.38/811-mmc-null-ptr-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-2.6.38/811-mmc-null-ptr-fix.patch b/target/linux/omap24xx/patches-2.6.38/811-mmc-null-ptr-fix.patch
new file mode 100644
index 0000000000..a8eaaf8dde
--- /dev/null
+++ b/target/linux/omap24xx/patches-2.6.38/811-mmc-null-ptr-fix.patch
@@ -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)