Skip to content

Instantly share code, notes, and snippets.

@htto
Created May 9, 2014 08:28
Show Gist options
  • Save htto/631659c313f11183129e to your computer and use it in GitHub Desktop.
Save htto/631659c313f11183129e to your computer and use it in GitHub Desktop.
Properly guard watchdog access in apanic_mmc.c
diff --git a/drivers/misc/apanic_mmc.c b/drivers/misc/apanic_mmc.c
index 2286250..f5dfb42 100644
--- a/drivers/misc/apanic_mmc.c
+++ b/drivers/misc/apanic_mmc.c
@@ -601,7 +601,9 @@ static void apanic_mmc_memdump(void)
!memdump_ctx.mmc_memdump_ops->panic_probe)
return;
+#ifdef CONFIG_OMAP_WATCHDOG_CONTROL
memdump_wdt_disable();
+#endif /* CONFIG_OMAP_WATCHDOG_CONTROL */
if (memdump_ctx.mmc_memdump_ops->panic_probe(memdump_ctx.memdump_hd,
memdump_ctx.mmc_memdump_ops->type)) {
printk(KERN_ERR "apanic: full memeory dump backing device"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment