Yunsheng Lin 77296bf6a7 net: hns3: use devm_kcalloc when allocating desc_cb
This patch uses devm_kcalloc instead of kcalloc when allocating
ring->desc_cb, because devm_kcalloc not only ensure to free the
memory when the dev is deallocted, but also allocate the memory
from it's device memory node.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-05-07 10:37:14 -07:00
..
2019-03-06 09:41:12 -08:00
2019-03-16 13:05:32 -07:00
2019-02-11 09:05:58 +01:00
2019-04-26 10:33:33 +10:00
2019-03-06 14:18:59 -08:00
2019-03-15 14:37:46 -07:00
2019-05-04 00:25:02 -04:00
2019-04-22 11:54:47 -07:00
2019-03-10 10:17:23 -07:00
2019-05-01 14:57:23 -07:00
2019-01-25 16:40:40 +01:00
2019-03-14 09:00:06 -07:00
2019-04-20 12:52:23 -07:00
2019-03-09 14:57:08 -08:00
2019-03-06 09:41:12 -08:00
2019-04-10 22:45:38 -07:00
2019-03-15 14:22:59 -07:00
2019-03-11 11:22:15 -07:00
2019-04-07 06:12:10 -10:00
2019-03-10 12:29:52 -07:00