fix raw_aio_remove
PATCH 1/1 fix raw_aio_remove
Hi all,
this small patch fixes a bug in the list iteration of raw_aio_remove. Cheers,
Stefano
Signed-off-by Stefano Stabellini <[email protected]>
block-raw-posix.c +2 -1
@@ -604,13 +604,14 @@ static void raw_aio_remove(RawAIOCB *acb) pacb = &posix_aio_state->first_aio;for (;;) {if (*pacb ==NULL ) { +fprintf (stderr,"raw_aio_remove: aio request not found!\n" );break ; }else if (*pacb == acb) { *pacb = acb->next;qemu_aio_release (acb);break ; } - pacb = &acb->next; + pacb = &(*pacb)->next; } }
Anthony Liguori
AppliedQuoted 4 lines · Stefano Stabellini
Hi all,
this small patch fixes a bug in the list iteration ofraw_aio_remove. Cheers,
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 29 lines
Stefano
Signed-off-by Stefano Stabellini <[email protected]>block-raw-posix.c +2
-1@@ -604,13 +604,14 @@ static void raw_aio_remove(RawAIOCB *acb) pacb = &posix_aio_state->first_aio;for (;;) {if (*pacb ==NULL ) { +fprintf (stderr,"raw_aio_remove: aio request not found!\n" );break ; }else if (*pacb == acb) { *pacb = acb->next;qemu_aio_release (acb);break ; } - pacb = &acb->next; + pacb = &(*pacb)->next; } }