summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-02-01 11:32:26 +0300
committerDavid S. Miller <davem@davemloft.net>2019-02-01 10:01:39 -0800
commit39ee6e8204b9d4bd46d57ad838fa852f5d293f99 (patch)
tree0c70b16e0ab6eda7ef4d847d80c98647d4b6ba0e /net
parentef76c77a0561e83d457937621ce2273b0580e345 (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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions