aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-11-14 23:26:36 +0800
committerAndrew Morton <[email protected]>2022-11-30 16:13:17 -0800
commite92a216d16bde65d21a3227e0fb2aa0794576525 (patch)
treeadc0eeb86eaf74ea5069e7552e8100ea11b4ea23 /scripts/generate_rust_analyzer.py
parentf9574cd48679926e2a569e1957a5a1bcc8a719ac (diff)
rapidio: rio: fix possible name leak in rio_register_mport()
If device_register() returns error, the name allocated by dev_set_name() need be freed. It should use put_device() to give up the reference in the error path, so that the name can be freed in kobject_cleanup(), and list_del() is called to delete the port from rio_mports. Link: https://lkml.kernel.org/r/[email protected] Fixes: 2aaf308b95b2 ("rapidio: rework device hierarchy and introduce mport class of devices") Signed-off-by: Yang Yingliang <[email protected]> Cc: Alexandre Bounine <[email protected]> Cc: Matt Porter <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions