diff options
author | Jianglei Nie <niejianglei2021@163.com> | 2022-09-05 15:48:01 +0800 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2022-09-20 17:25:51 +0200 |
commit | b28dbcb379e6a7f80262c2732a57681b1ee548ca (patch) | |
tree | 2af061bfc43650829710a86156d8fa493610282f /drivers/hsi/clients/nokia-modem.c | |
parent | HSI: omap_ssi_port: Fix dma_map_sg error check (diff) | |
download | linux-dev-b28dbcb379e6a7f80262c2732a57681b1ee548ca.tar.xz linux-dev-b28dbcb379e6a7f80262c2732a57681b1ee548ca.zip |
HSI: ssi_protocol: fix potential resource leak in ssip_pn_open()
ssip_pn_open() claims the HSI client's port with hsi_claim_port(). When
hsi_register_port_event() gets some error and returns a negetive value,
the HSI client's port should be released with hsi_release_port().
Fix it by calling hsi_release_port() when hsi_register_port_event() fails.
Signed-off-by: Jianglei Nie <niejianglei2021@163.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/hsi/clients/nokia-modem.c')
0 files changed, 0 insertions, 0 deletions