If an error occurs starting a channel, don't "thaw" it.
We should assume the channel remains in a non-started state.
Update the comment in gsi_channel_stop(); calls to this function
are no longer retried.
Signed-off-by: Alex Elder <elder@linaro.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
mutex_unlock(&gsi->mutex);
- gsi_channel_thaw(channel);
+ /* Thaw the channel if successful */
+ if (!ret)
+ gsi_channel_thaw(channel);
return ret;
}
mutex_unlock(&gsi->mutex);
- /* Thaw the channel if we need to retry (or on error) */
+ /* Re-thaw the channel if an error occurred while stopping */
if (ret)
gsi_channel_thaw(channel);