From 0a4c4240c1d6a4155d41c71c4a3ca3dc3dc4cb90 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 9 May 2014 14:59:16 +0300 Subject: [PATCH] applicom: dereferencing NULL on error path This is a static checker fix. The "dev" variable is always NULL after the while statement so we would be dereferencing a NULL pointer here. Fixes: f5ffdb19e362 ('[PATCH] applicom: fix error handling') Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- drivers/char/applicom.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c index 974321a2508d8..14790304b84b2 100644 --- a/drivers/char/applicom.c +++ b/drivers/char/applicom.c @@ -345,7 +345,6 @@ out: free_irq(apbs[i].irq, &dummy); iounmap(apbs[i].RamIO); } - pci_disable_device(dev); return ret; } -- 2.39.5