Skip to contentSkip to conversation

applicom: dereferencing NULL on error path

PATCH New Dan Carpenter 1 participant 1 message May 9, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 819a3eba4233 ('[PATCH] applicom: fix error handling')
drivers/char/applicom.c +0 -1
index 974321a..1479030 100644
@@ -345,7 +345,6 @@ out:
 			free_irq(apbs[i].irq, &dummy);
 		iounmap(apbs[i].RamIO);
 	}
-	pci_disable_device(dev);
 	return ret;
 }