Skip to content
Commit d27423bf authored by Shradha Gupta's avatar Shradha Gupta Committed by Wei Liu
Browse files

hv_balloon: Fix balloon_probe() and balloon_remove() error handling



Add missing cleanup in balloon_probe() if the call to
balloon_connect_vsp() fails.  Also correctly handle cleanup in
balloon_remove() when dm_state is DM_INIT_ERROR because
balloon_resume() failed.

Signed-off-by: default avatarShradha Gupta <shradhagupta@microsoft.com>
Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220516045058.GA7933@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net


Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent 86c8fb4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment