projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63fa80c
)
applicom: dereferencing NULL on error path
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 9 May 2014 11:59:16 +0000
(14:59 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 28 May 2014 00:43:12 +0000
(17:43 -0700)
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>
drivers/char/applicom.c
patch
|
blob
|
history
diff --git
a/drivers/char/applicom.c
b/drivers/char/applicom.c
index
974321a
..
1479030
100644
(file)
--- 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;
}