summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bitarray.c
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/batman-adv/bitarray.c
parentef76c77a0561e83d457937621ce2273b0580e345 (diff)
downloadlinux-39ee6e8204b9d4bd46d57ad838fa852f5d293f99.tar.bz2
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/batman-adv/bitarray.c')
0 files changed, 0 insertions, 0 deletions