aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2022-05-27 00:27:19 +0000
committerDave Chinner <[email protected]>2022-05-27 00:27:19 +0000
commit910bbdf2f4d7df46781bc9b723048f5ebed3d0d7 (patch)
tree8a79c9bf094fc6d446e310df1d2e2f3159074ab6 /tools/bpf/bpftool/prog.c
parentxfs: don't leak xfs_buf_cancel structures when recovery fails (diff)
downloadkernel-910bbdf2f4d7df46781bc9b723048f5ebed3d0d7.tar.gz
kernel-910bbdf2f4d7df46781bc9b723048f5ebed3d0d7.zip
xfs: convert buf_cancel_table allocation to kmalloc_array
While we're messing around with how recovery allocates and frees the buffer cancellation table, convert the allocation to use kmalloc_array instead of the old kmem_alloc APIs, and make it handle a null return, even though that's not likely. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions