git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6286e82
)
enic: check return value for stat dump
author
Govindarajulu Varadarajan
<_govind@gmx.com>
Thu, 11 Jun 2015 06:22:55 +0000
(11:52 +0530)
committer
David S. Miller
<davem@davemloft.net>
Thu, 11 Jun 2015 06:42:39 +0000
(23:42 -0700)
We do not check the return value of enic_dev_stats_dump(). If allocation
fails, we will hit NULL pointer reference.
Return only if memory allocation fails. For other failures, we return the
previously recorded values.
Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found