diff options
author | Weihang Li <[email protected]> | 2019-07-04 22:04:25 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-07-05 15:39:38 -0700 |
commit | 0bae5cf25d66156ae3eb9ca20a1ad9bc4aa35a6d (patch) | |
tree | d17509d3eaeacd2b8b0b5ba17a8ec8fcd4e78610 /drivers/fpga/fpga-bridge.c | |
parent | c09ba484563c17f90ec91b46322c31d3440acc42 (diff) |
net: hns3: check msg_data before memcpy in hclgevf_send_mbx_msg
The value of msg_data may be NULL in some cases, which will cause
errors reported by some compiler.
So this patch adds a check to fix it.
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions