Commit 3590a68c authored by Zhongyuan Zhou's avatar Zhongyuan Zhou Committed by Jeiwei Li
Browse files

network_mgmt: Merge the openEuler modification suggestions.

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>
parent 42d7d2ee
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;
}