summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-05-09 15:59:16 +0400
committerJiri Slaby <jslaby@suse.cz>2014-07-02 14:06:04 +0400
commit5289d91feb0e3ffd287979abb7e5b7e02a14f752 (patch)
tree775b370adc910277c0bdc84f3cb553fa1470f8ab /drivers/char
parent6493b82225f7b2a92ef8b8386687ba8e78cd7407 (diff)
downloadlinux-5289d91feb0e3ffd287979abb7e5b7e02a14f752.tar.xz
applicom: dereferencing NULL on error path
commit 8bab797c6e5724a43b7666ad70860712365cdb71 upstream. 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') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/applicom.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c
index 974321a2508d..14790304b84b 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;
}