summaryrefslogtreecommitdiff
path: root/Documentation/gpu/intel-display/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2026-05-29 11:41:18 +0200
committerAlexei Starovoitov <ast@kernel.org>2026-05-31 17:47:48 -0700
commitd2f7bd066ed492aeaf82864fbf1f06770f9d9f9d (patch)
treef8b48e2b73f8058844a3a916b7ca31f6f3c0999f /Documentation/gpu/intel-display/git@git.tavy.me:linux.git
parent3c5e2f1a85844abbb65df4694f5ebad0a13e219c (diff)
libbpf: Also reset {insn,data}_cur on realloc failure
realloc_insn_buf() as well as realloc_data_buf() free and NULL gen->insn_start / gen->data_start on -ENOMEM but leave gen->insn_cur / gen->data_cur pointing into the old, freed buffer. Just reset the cursors to NULL alongside the base pointers so the freed state is coherent. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/r/20260529094119.307264-3-daniel@iogearbox.net Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation/gpu/intel-display/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions