Loading
soc: qcom: glink_ssr: Clear cb_data if channel open fails
When the G-Link SSR module creates channels for SSR notifications,
it assigns the callback data to the subsystem information structure
before the channel open is attempted. If the channel open fails, a
return occurs and the stale callback data will be kept. Also, the error
code -ENOMEM is incorrect.
Return the value of glink_open() in this failure case, and clear the
callback data if the channel open fails.
Change-Id: I3143b59ae655e2110492c0f58f851db765b5a74f
Signed-off-by:
Steven Cahail <scahail@codeaurora.org>