]> git.baikalelectronics.ru Git - kernel.git/commit
hv_balloon: Fix balloon_probe() and balloon_remove() error handling
authorShradha Gupta <shradhagupta@linux.microsoft.com>
Mon, 16 May 2022 04:50:58 +0000 (21:50 -0700)
committerWei Liu <wei.liu@kernel.org>
Thu, 26 May 2022 10:04:57 +0000 (10:04 +0000)
commit1360ad81eaa9a006c6c742b27f7d8e485ef6dba6
tree8c0675319c0f936922c4841d5ef9cd507ae60ed6
parenteb2bc66a570166c54b4c7b6088c580c0d4d78483
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: Shradha Gupta <shradhagupta@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220516045058.GA7933@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv_balloon.c