RDMA/hns: Add check and adjust for function resource values
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8H7RB -------------------------------------------------------------------------- Currently, RoCE driver gets function resource values from firmware without validity check. As these resources are mostly related to memory, an invalid value may lead to serious consequence such as kernel panic. This patch adds check for these resource values and adjusts the invalid ones. Fixes: 74e1531c ("RDMA/hns: Reserve the resource for the VFs") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com>
Loading
Please sign in to comment