aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-10-21 22:28:23 +0200
committerDmitry Torokhov <[email protected]>2024-10-22 13:58:39 -0700
commitddefcd779eb7ef931e47fb41a0da288286d6a431 (patch)
tree2996f546b1695ba73228b9f8ac583acb1f0ea0fc /scripts/gdb/linux/modules.py
parent6951ec3f6ea9a814a1b7f6c932a9ed663e53412d (diff)
Input: sparcspkr - use device managed memory for 'state'
Use devm_kzalloc() in bbc_bee_probe() and grover_beep_probe() to automatically free 'state' when the device is removed. Drop the kfree(state) calls from the probe error paths and the remove functions accordingly. Suggested-by: Dmitry Torokhov <[email protected]> Signed-off-by: Javier Carrasco <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions