summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-12-16 15:06:25 +0100
committerTakashi Iwai <tiwai@suse.de>2025-12-17 10:08:29 +0100
commitf3d233daf011abbad2f6ebd0e545b42d2f378a4f (patch)
tree3a6e2980c66e44e1c6c7ed71fd8570d73e234257 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent7b4721ca3159bce6338dbdf9188b785083571ed4 (diff)
ALSA: pcm: Relax __free() variable declarations
We used to have a variable declaration with __free() initialized with NULL. This was to keep the old coding style rule, but recently it's relaxed and rather recommends to follow the new rule to declare in place of use for __free() -- which avoids potential deadlocks or UAFs with nested cleanups. Although the current code has no bug, per se, let's follow the new standard and move the declaration to the place of assignment (or directly assign the allocated result) instead of NULL initializations. Fixes: ae9213984864 ("ALSA: pcm: Use automatic cleanup of kfree()") Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20251216140634.171890-4-tiwai@suse.de
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions