+58
−63
Loading
Merge Pull Request from: @lujunhuaHW The filter sysfs attribute is initialized when creating to the sysfs. This is unnecessary and could be done when allocation without distinguishing the filter type. After the changes above, we don't need a wrapper for initializing and registering the filter's sysfs attributes. Remove them and call the sysfs creating/removing functions in place. Abnormally it's reported duplicated filters added in the filter list, though the filter we created should be unique maintained by the PCIe framework. Add a duplicate filters check before allocation to prevent this case. Issue: https://gitee.com/openeuler/kernel/issues/IBNZ64 Link:https://gitee.com/openeuler/kernel/pulls/15185 Reviewed-by:Yang Shen <shenyang39@huawei.com> Signed-off-by:
Zhang Peng <zhangpeng362@huawei.com>