[PATCH bpf-next 0/2] Two tiny fixes for btf record

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Hou Tao <houtao1@xxxxxxxxxx>

Hi,

The tiny patch set aims to fix two problems found during the development
of supporting dynptr key in hash table. Patch #1 fixes the missed
btf_record_free() when map creation fails and patch #2 fixes the missed
kfree() when there is no special field in the passed btf.

Comments are always welcome.

Hou Tao (2):
  bpf: Call the missed btf_record_free() when map creation fails
  bpf: Call the missed kfree() when there is no special field in btf

 kernel/bpf/btf.c     |  4 +++-
 kernel/bpf/syscall.c | 19 ++++++++++++-------
 2 files changed, 15 insertions(+), 8 deletions(-)

-- 
2.29.2





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux