diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-05-09 14:59:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 17:43:12 -0700 |
commit | 8bab797c6e5724a43b7666ad70860712365cdb71 (patch) | |
tree | ffee514d021ca9dc1e35d75303fb00dc6dfe23e9 | |
parent | 63fa80cd582321693474f9cf9203329a2f8a8494 (diff) | |
download | blackbird-op-linux-8bab797c6e5724a43b7666ad70860712365cdb71.tar.gz blackbird-op-linux-8bab797c6e5724a43b7666ad70860712365cdb71.zip |
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')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/char/applicom.c | 1 |
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; } |