Message ID | 40de33ca69c0d3bcf8c827862768ae5d399698d6.1589926004.git.anchalag@amazon.com |
---|---|
State | New |
Headers | show |
Series | [01/12] xen/manage: keep track of the on-going suspend mode | expand |
diff --git a/kernel/power/user.c b/kernel/power/user.c index 7959449765d9..1afa1f0a223e 100644 --- a/kernel/power/user.c +++ b/kernel/power/user.c @@ -235,8 +235,12 @@ static int snapshot_set_swap_area(struct snapshot_data *data, return -EINVAL; } data->swap = swap_type_of(swdev, offset, NULL); - if (data->swap < 0) + if (data->swap < 0) { return -ENODEV; + } else { + swsusp_resume_device = swdev; + swsusp_resume_block = offset; + } return 0; }