Commit 6fd50c4f authored by Chengchang Tang's avatar Chengchang Tang Committed by Juan Zhou
Browse files

RDMA/hns: Fix sleeping in setup_dca_buf_to_hw()

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6GT7F



--------------------------------------------------------------------------

setup_dca_buf_to_hw() was in a spinlock which is a kind of atomic
context.

Replace the kvcalloc() with no sleep kcalloc()

Fixes: 12aa71f8 ("RDMA/hns: Add DCA support for kernel space")
Signed-off-by: default avatarChengchang Tang <tangchengchang@huawei.com>
parent 3e7c94b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment