commit | 19b596bda1c5400808635fde0d521c1f89a6c1a3 | [log] [tgz] |
---|---|---|
author | Govindarajulu Varadarajan <_govind@gmx.com> | Thu Jun 11 11:52:55 2015 +0530 |
committer | David S. Miller <davem@davemloft.net> | Wed Jun 10 23:42:39 2015 -0700 |
tree | 5484ba980423c60c8f684cc681d9c76883fe11ff | |
parent | 6286e8285078ab02b215bba1d42a05ecfd864515 [diff] |
enic: check return value for stat dump 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>