Skip to content

Commit

Permalink
Fix gcc-14 build errors
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGillion <[email protected]>
  • Loading branch information
brianmcgillion committed Dec 31, 2024
1 parent 1c3544f commit abead74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ index de49d1b..b1761b3 100644
error_setg(&s->migration_blocker,
"Migration is disabled when using feature 'peer mode' in device 'ivshmem'");
- if (migrate_add_blocker(&s->migration_blocker, errp) < 0) {
+ if (migrate_add_blocker(s->migration_blocker, errp) < 0) {
+ if (migrate_add_blocker(&s->migration_blocker, errp) < 0) {
+ error_free(s->migration_blocker);
return;
}
Expand All @@ -169,7 +169,7 @@ index de49d1b..b1761b3 100644

- migrate_del_blocker(&s->migration_blocker);
+ if (s->migration_blocker) {
+ migrate_del_blocker(s->migration_blocker);
+ migrate_del_blocker(&s->migration_blocker);
+ error_free(s->migration_blocker);
+ }

Expand Down

0 comments on commit abead74

Please sign in to comment.