commit | 39ee6e8204b9d4bd46d57ad838fa852f5d293f99 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Feb 01 11:32:26 2019 +0300 |
committer | David S. Miller <davem@davemloft.net> | Fri Feb 01 10:01:39 2019 -0800 |
tree | 0c70b16e0ab6eda7ef4d847d80c98647d4b6ba0e | |
parent | ef76c77a0561e83d457937621ce2273b0580e345 [diff] |
net: hns3: Check for allocation failure We should return -ENOMEM if the kcalloc() fails. Fixes: d174ea75c96a ("net: hns3: add statistics for PFC frames and MAC control frame") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>