Commit d27423b
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>1 parent 86c8fb4 commit d27423b
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1842 | 1842 | | |
1843 | 1843 | | |
1844 | 1844 | | |
1845 | | - | |
| 1845 | + | |
1846 | 1846 | | |
1847 | 1847 | | |
1848 | 1848 | | |
| |||
1861 | 1861 | | |
1862 | 1862 | | |
1863 | 1863 | | |
| 1864 | + | |
1864 | 1865 | | |
1865 | 1866 | | |
1866 | 1867 | | |
| |||
1882 | 1883 | | |
1883 | 1884 | | |
1884 | 1885 | | |
1885 | | - | |
1886 | | - | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
1887 | 1895 | | |
1888 | | - | |
1889 | | - | |
| 1896 | + | |
| 1897 | + | |
1890 | 1898 | | |
| 1899 | + | |
| 1900 | + | |
1891 | 1901 | | |
1892 | 1902 | | |
1893 | 1903 | | |
| |||
1948 | 1958 | | |
1949 | 1959 | | |
1950 | 1960 | | |
| 1961 | + | |
1951 | 1962 | | |
1952 | 1963 | | |
1953 | 1964 | | |
| |||
0 commit comments