diff options
| author | Cássio Gabriel <cassiogabrielcontato@gmail.com> | 2026-06-04 01:48:12 -0300 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-06-04 10:20:41 +0200 |
| commit | 83615ff7c61ce2336b81b68cfbba6eadaf7843e9 (patch) | |
| tree | 0c5e1c353c1db42b50d8e4302bf8be4c289d495a /include/linux/debugobjects.h | |
| parent | 3580bc53520ce4efc94ece5886ad3670b93667ba (diff) | |
ALSA: control: Use scoped cleanup for user control buffers
User-defined control TLV data and enum names are copied from user space
with vmemdup_user() before being installed in the user_element. Until
ownership is transferred, these temporary buffers have to be released on
every validation exit.
Use __free(kvfree) for the temporary buffers and no_free_ptr() when
ownership is transferred to the user_element. This removes the manual
kvfree() calls from the unchanged-TLV and enum-name validation paths,
makes the ownership hand-off explicit, and keeps the existing allocation
accounting and ABI unchanged.
No functional change is intended.
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260604-alsa-scoped-cleanups-v1-1-10c43152a728@gmail.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
