aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-12-08 23:19:16 +0800
committerHans de Goede <[email protected]>2022-12-08 17:35:49 +0100
commit0b3d0cb7c0bed2fd6454f77ed75e7a662c6efd12 (patch)
tree31ecfe1bf308d72ce285ba88dca922e68993dcb8 /drivers/fpga/fpga-mgr.c
parente80355dd25aeab0e260911829e1495e17219bf1a (diff)
platform/x86: intel_scu_ipc: fix possible name leak in __intel_scu_ipc_register()
In some error paths before device_register(), the names allocated by dev_set_name() are not freed. Move dev_set_name() front to device_register(), so the name can be freed while calling put_device(). Fixes: 54b34aa0a729 ("platform/x86: intel_scu_ipc: Split out SCU IPC functionality from the SCU driver") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions