]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.13-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2014 18:45:32 +0000 (10:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2014 18:45:32 +0000 (10:45 -0800)
added patches:
mmc-sdhci-pci-fix-possibility-of-chip-fixes-being-null.patch

queue-3.13/mmc-sdhci-pci-fix-possibility-of-chip-fixes-being-null.patch [new file with mode: 0644]
queue-3.13/series

diff --git a/queue-3.13/mmc-sdhci-pci-fix-possibility-of-chip-fixes-being-null.patch b/queue-3.13/mmc-sdhci-pci-fix-possibility-of-chip-fixes-being-null.patch
new file mode 100644 (file)
index 0000000..5a2da5a
--- /dev/null
@@ -0,0 +1,31 @@
+From 945be38caa287b177b8c17ffaae7754cab6a658f Mon Sep 17 00:00:00 2001
+From: Adrian Hunter <adrian.hunter@intel.com>
+Date: Tue, 21 Jan 2014 09:52:39 +0200
+Subject: mmc: sdhci-pci: Fix possibility of chip->fixes being null
+
+From: Adrian Hunter <adrian.hunter@intel.com>
+
+commit 945be38caa287b177b8c17ffaae7754cab6a658f upstream.
+
+It is possible for chip->fixes to be null.  Check before dereferencing it.
+
+Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
+Signed-off-by: Chris Ball <chris@printf.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/mmc/host/sdhci-pci.c |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/drivers/mmc/host/sdhci-pci.c
++++ b/drivers/mmc/host/sdhci-pci.c
+@@ -1466,7 +1466,8 @@ static struct sdhci_pci_slot *sdhci_pci_
+        * from runtime suspend.  If it is not there, don't allow runtime PM.
+        * Note sdhci_pci_add_own_cd() sets slot->cd_gpio to -EINVAL on failure.
+        */
+-      if (chip->fixes->own_cd_for_runtime_pm && !gpio_is_valid(slot->cd_gpio))
++      if (chip->fixes && chip->fixes->own_cd_for_runtime_pm &&
++          !gpio_is_valid(slot->cd_gpio))
+               chip->allow_runtime_pm = false;
+       return slot;
index bc4348b18af2d370c9554f37389bbb7de904a5d4..074d9c3778e4f26e60f9bcce4c73a3539dfc1077 100644 (file)
@@ -117,3 +117,4 @@ timekeeping-fix-clock_tai-timer-nanosleep-delays.patch
 timekeeping-fix-missing-timekeeping_update-in-suspend-path.patch
 rtc-cmos-add-an-alarm-disable-quirk.patch
 mmc-sdhci-pci-fix-byt-sd-card-getting-stuck-in-runtime-suspend.patch
+mmc-sdhci-pci-fix-possibility-of-chip-fixes-being-null.patch