Unverified Commit 6cb3706d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3480 drivers: net: ub: dev: network_mgmt: ip_notify: ip_notify: Merge the...

!3480 drivers: net: ub: dev: network_mgmt: ip_notify: ip_notify: Merge the openEuler modification  suggestions.

Merge Pull Request from: @zhou-zhongyuan 
 
driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8ODW9


CVE: NA

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

This patch merge the openEuler modification suggestions of the ip_notify.

Signed-off-by: default avatarZhongyuan Zhou <zhouzhongyuan1@huawei.com>
 
Link:https://gitee.com/openeuler/kernel/pulls/3480

 

Reviewed-by: default avatarChunzhi Hu <huchunzhi@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents a74e7ec1 3590a68c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ static int ip_notify_init_ipv4(struct kobject *kobj,
	return 0;

err_bad_ipv4_notify_tx_cnt:
	sysfs_remove_file(kobj, &ipn_attrs->bad_ipv4_notify_tx_cnt.attr);
	sysfs_remove_file(kobj, &ipn_attrs->good_ipv4_notify_tx_cnt.attr);
	return ret;
}

@@ -244,7 +244,7 @@ static int ip_notify_init_ipv6(struct kobject *kobj,
	return 0;

err_bad_ipv6_notify_tx_cnt:
	sysfs_remove_file(kobj, &ipn_attrs->bad_ipv6_notify_tx_cnt.attr);
	sysfs_remove_file(kobj, &ipn_attrs->good_ipv6_notify_tx_cnt.attr);
	return ret;
}