omap24xx: Fix possible MMC null ptr deref
authorMichael Büsch <mb@bu3sch.de>
Sun, 27 Feb 2011 17:23:58 +0000 (17:23 +0000)
committerMichael Büsch <mb@bu3sch.de>
Sun, 27 Feb 2011 17:23:58 +0000 (17:23 +0000)
SVN-Revision: 25758

target/linux/omap24xx/patches-2.6.38/811-mmc-null-ptr-fix.patch [new file with mode: 0644]

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 (file)
index 0000000..a8eaaf8
--- /dev/null
@@ -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)