https://github.com/torvalds/linux
Revision 950aa42399893a170d9b57eda0e4a3ff91fd8b70 authored by Peiyang Wang on 07 May 2024, 13:42:21 UTC, committed by Paolo Abeni on 09 May 2024, 08:47:32 UTC
During the PF initialization process, hclge_update_port_info may return an
error code for some reason. At this point,  the ptp initialization has been
completed. To void memory leaks, the resources that are applied by ptp
should be released. Therefore, when hclge_update_port_info returns an error
code, hclge_ptp_uninit is called to release the corresponding resources.

Fixes: eaf83ae59e18 ("net: hns3: add querying fec ability from firmware")
Signed-off-by: Peiyang Wang <wangpeiyang1@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 6639a7b
History
Tip revision: 950aa42399893a170d9b57eda0e4a3ff91fd8b70 authored by Peiyang Wang on 07 May 2024, 13:42:21 UTC
net: hns3: release PTP resources if pf initialization failed
Tip revision: 950aa42
File Mode Size
Kconfig -rw-r--r-- 1.9 KB
Makefile -rw-r--r-- 388 bytes
acl.c -rw-r--r-- 4.2 KB
control.c -rw-r--r-- 8.4 KB
cuse.c -rw-r--r-- 15.9 KB
dax.c -rw-r--r-- 36.1 KB
dev.c -rw-r--r-- 54.8 KB
dir.c -rw-r--r-- 54.5 KB
file.c -rw-r--r-- 83.3 KB
fuse_i.h -rw-r--r-- 36.6 KB
inode.c -rw-r--r-- 51.1 KB
ioctl.c -rw-r--r-- 12.8 KB
iomode.c -rw-r--r-- 7.1 KB
passthrough.c -rw-r--r-- 7.8 KB
readdir.c -rw-r--r-- 14.1 KB
virtio_fs.c -rw-r--r-- 39.8 KB
xattr.c -rw-r--r-- 5.0 KB

back to top