diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2020-12-21 20:24:35 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-07 11:27:43 +0100 |
commit | 0e971f91e0669227dd3e79ed56887b8310c5c1c1 (patch) | |
tree | ce8df9eb7706032b198a75865ff11f6269a68958 /arch | |
parent | 251a11473254cfedc0b6ccdb2eb07c636c39151b (diff) |
staging: fwserial: Fix error handling in fwserial_create
[ Upstream commit f31559af97a0eabd467e4719253675b7dccb8a46 ]
When fw_core_add_address_handler() fails, we need to destroy
the port by tty_port_destroy(). Also we need to unregister
the address handler by fw_core_remove_address_handler() on
failure.
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20201221122437.10274-1-dinghao.liu@zju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions