]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: atkbd - use __free() cleanup facility in when parsing FW keymap
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 21 Feb 2026 02:57:58 +0000 (18:57 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 1 Mar 2026 02:20:48 +0000 (18:20 -0800)
commit1fe01b817921d2bbb10cc9c83d36364738ecfe5d
tree8897919cb86b14e4ba99a2924224e296afa90c2f
parent0c695e6b90674c67e03866123456cabfe1f74d9c
Input: atkbd - use __free() cleanup facility in when parsing FW keymap

Annotating the temporary keymap pointer as __free(kfree) ensures that it
will get released when exiting the function and explicit freeing in all
the return paths can be removed.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/atkbd.c