projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59d53bc
)
net: ethernet: ax88796: avoid null pointer dereference
author
xypron.glpk@gmx.de
<xypron.glpk@gmx.de>
Sun, 31 Jul 2016 07:58:44 +0000
(09:58 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 1 Aug 2016 20:32:51 +0000
(13:32 -0700)
If platform_get_resource fails, mem2 is null.
Do not dereference null.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/ax88796.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/8390/ax88796.c
b/drivers/net/ethernet/8390/ax88796.c
index
5698f53
..
39ca935
100644
(file)
--- a/
drivers/net/ethernet/8390/ax88796.c
+++ b/
drivers/net/ethernet/8390/ax88796.c
@@
-910,7
+910,8
@@
static int ax_probe(struct platform_device *pdev)
iounmap(ax->map2);
exit_mem2:
- release_mem_region(mem2->start, mem2_size);
+ if (mem2)
+ release_mem_region(mem2->start, mem2_size);
exit_mem1:
iounmap(ei_local->mem);