aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorYuan Can <[email protected]>2022-11-24 03:19:26 +0000
committerJarkko Sakkinen <[email protected]>2022-12-08 16:20:47 +0000
commit2b7d07f7acaac2c7750e420dcf4414588ede6d03 (patch)
treecb5ede57af81d7f1eb7ee003f34b3e36ea0396b4 /drivers/fpga/fpga-mgr.c
parentdb9622f762104459ff87ecdf885cc42c18053fd9 (diff)
tpm/tpm_ftpm_tee: Fix error handling in ftpm_mod_init()
The ftpm_mod_init() returns the driver_register() directly without checking its return value, if driver_register() failed, the ftpm_tee_plat_driver is not unregistered. Fix by unregister ftpm_tee_plat_driver when driver_register() failed. Fixes: 9f1944c23c8c ("tpm_ftpm_tee: register driver on TEE bus") Signed-off-by: Yuan Can <[email protected]> Reviewed-by: Maxim Uvarov <[email protected]> Acked-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions