Commit 63a0766e authored by Chengchang Tang's avatar Chengchang Tang Committed by Jeiwei Li
Browse files

RDMA/hns: Fix potential NULL pointer in DCA memory query

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



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

The hr_qp can be a NULL pointer. A check has been added to avoid
illegal access.

Fixes: f0384ddc ("RDMA/hns: Add method to query WQE buffer's address")
Signed-off-by: default avatarChengchang Tang <tangchengchang@huawei.com>
parent 35c15b48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment