mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
amdgpu: fix clang warnings
amdgpu_plugin.c:930:6: error: variable 'buffer' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (ret) {
^~~
amdgpu_plugin.c:988:8: note: uninitialized use occurs here
xfree(buffer);
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
ba168ab78c
commit
28e854d662
1 changed files with 2 additions and 2 deletions
|
|
@ -915,7 +915,7 @@ void *dump_bo_contents(void *_thread_data)
|
|||
int num_bos = 0;
|
||||
int i, ret = 0;
|
||||
FILE *bo_contents_fp = NULL;
|
||||
void *buffer;
|
||||
void *buffer = NULL;
|
||||
char img_path[40];
|
||||
|
||||
pr_info("Thread[0x%x] started\n", thread_data->gpu_id);
|
||||
|
|
@ -1004,7 +1004,7 @@ void *restore_bo_contents(void *_thread_data)
|
|||
uint64_t max_copy_size;
|
||||
uint32_t major, minor;
|
||||
FILE *bo_contents_fp = NULL;
|
||||
void *buffer;
|
||||
void *buffer = NULL;
|
||||
char img_path[40];
|
||||
int num_bos = 0;
|
||||
int i, ret = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue