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
9p
adfs
affs
afs
autofs
bcachefs
befs
bfs
btrfs
cachefiles
ceph
coda
configfs
cramfs
crypto
debugfs
devpts
dlm
ecryptfs
efivarfs
efs
erofs
exfat
exportfs
ext2
ext4
f2fs
fat
freevxfs
fuse
gfs2
hfs
hfsplus
hostfs
hpfs
hugetlbfs
iomap
isofs
jbd2
jffs2
jfs
kernfs
lockd
minix
netfs
nfs
nfs_common
nfsd
nilfs2
nls
notify
ntfs3
ocfs2
omfs
openpromfs
orangefs
overlayfs
proc
pstore
qnx4
qnx6
quota
ramfs
reiserfs
romfs
smb
squashfs
sysfs
sysv
tracefs
ubifs
udf
ufs
unicode
vboxsf
verity
xfs
zonefs
Kconfig -rw-r--r-- 10.0 KB
Kconfig.binfmt -rw-r--r-- 6.2 KB
Makefile -rw-r--r-- 4.4 KB
aio.c -rw-r--r-- 61.6 KB
anon_inodes.c -rw-r--r-- 8.4 KB
attr.c -rw-r--r-- 15.4 KB
backing-file.c -rw-r--r-- 7.8 KB
bad_inode.c -rw-r--r-- 5.6 KB
binfmt_elf.c -rw-r--r-- 55.9 KB
binfmt_elf_fdpic.c -rw-r--r-- 43.6 KB
binfmt_elf_test.c -rw-r--r-- 2.7 KB
binfmt_flat.c -rw-r--r-- 25.8 KB
binfmt_misc.c -rw-r--r-- 26.2 KB
binfmt_script.c -rw-r--r-- 4.2 KB
buffer.c -rw-r--r-- 82.4 KB
char_dev.c -rw-r--r-- 16.6 KB
compat_binfmt_elf.c -rw-r--r-- 3.8 KB
coredump.c -rw-r--r-- 30.4 KB
d_path.c -rw-r--r-- 11.4 KB
dax.c -rw-r--r-- 55.2 KB
dcache.c -rw-r--r-- 83.6 KB
direct-io.c -rw-r--r-- 38.4 KB
drop_caches.c -rw-r--r-- 1.9 KB
eventfd.c -rw-r--r-- 11.3 KB
eventpoll.c -rw-r--r-- 68.8 KB
exec.c -rw-r--r-- 52.4 KB
fcntl.c -rw-r--r-- 23.9 KB
fhandle.c -rw-r--r-- 7.0 KB
file.c -rw-r--r-- 36.0 KB
file_table.c -rw-r--r-- 13.4 KB
filesystems.c -rw-r--r-- 6.5 KB
fs-writeback.c -rw-r--r-- 81.6 KB
fs_context.c -rw-r--r-- 19.2 KB
fs_parser.c -rw-r--r-- 10.7 KB
fs_pin.c -rw-r--r-- 1.9 KB
fs_struct.c -rw-r--r-- 3.4 KB
fs_types.c -rw-r--r-- 2.5 KB
fsopen.c -rw-r--r-- 11.6 KB
init.c -rw-r--r-- 6.0 KB
inode.c -rw-r--r-- 69.2 KB
internal.h -rw-r--r-- 9.4 KB
ioctl.c -rw-r--r-- 24.8 KB
kernel_read_file.c -rw-r--r-- 4.4 KB
libfs.c -rw-r--r-- 55.6 KB
locks.c -rw-r--r-- 78.6 KB
mbcache.c -rw-r--r-- 12.5 KB
mnt_idmapping.c -rw-r--r-- 8.7 KB
mount.h -rw-r--r-- 4.2 KB
mpage.c -rw-r--r-- 18.5 KB
namei.c -rw-r--r-- 139.7 KB
namespace.c -rw-r--r-- 134.6 KB
nsfs.c -rw-r--r-- 5.6 KB
open.c -rw-r--r-- 40.0 KB
pidfs.c -rw-r--r-- 7.4 KB
pipe.c -rw-r--r-- 36.6 KB
pnode.c -rw-r--r-- 16.2 KB
pnode.h -rw-r--r-- 2.1 KB
posix_acl.c -rw-r--r-- 31.3 KB
proc_namespace.c -rw-r--r-- 7.9 KB
read_write.c -rw-r--r-- 40.6 KB
readdir.c -rw-r--r-- 15.1 KB
remap_range.c -rw-r--r-- 14.1 KB
select.c -rw-r--r-- 34.8 KB
seq_file.c -rw-r--r-- 25.7 KB
signalfd.c -rw-r--r-- 8.7 KB
splice.c -rw-r--r-- 46.6 KB
stack.c -rw-r--r-- 2.6 KB
stat.c -rw-r--r-- 23.2 KB
statfs.c -rw-r--r-- 9.7 KB
super.c -rw-r--r-- 58.0 KB
sync.c -rw-r--r-- 10.4 KB
sysctls.c -rw-r--r-- 784 bytes
timerfd.c -rw-r--r-- 13.9 KB
userfaultfd.c -rw-r--r-- 58.7 KB
utimes.c -rw-r--r-- 7.7 KB
xattr.c -rw-r--r-- 36.0 KB

back to top