Re: [PATCH net 2/3] enic: check return value for stat dump

2015-06-10 Thread David Miller
From: Govindarajulu Varadarajan <_gov...@gmx.com> Date: Thu, 11 Jun 2015 11:52:55 +0530 > 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 > previousl

[PATCH net 2/3] enic: check return value for stat dump

2015-06-10 Thread Govindarajulu Varadarajan
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 <_gov...@gmx.com> --- drivers/net/eth