Skip to content
Commit b28dbcb3 authored by Jianglei Nie's avatar Jianglei Nie Committed by Sebastian Reichel
Browse files

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: default avatarJianglei Nie <niejianglei2021@163.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 551e325b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment