summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorWei Hu (Xavier) <xavier.huwei@huawei.com>2016-11-23 19:41:01 +0000
committerDoug Ledford <dledford@redhat.com>2016-12-03 14:20:42 -0500
commit8d497eb0f325e98fa87b59ac86069deea64e8d5d (patch)
tree1088df417ae9ef7283f51ba849ae7f60b7675ff8 /net/lapb/lapb_timer.c
parent8f3e9f3ea0871a988ec9540a4cde48a20c1cb98b (diff)
IB/hns: Optimize the logic of allocating memory using APIs
This patch modified the logic of allocating memory using APIs in hns RoCE driver. We used kcalloc instead of kmalloc_array and bitmap_zero. And When kcalloc failed, call vzalloc to alloc memory. Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com> Signed-off-by: Ping Zhang <zhangping5@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions