Skip to content

Commit

Permalink
Fixed client's callback not being called in case of error in dma load
Browse files Browse the repository at this point in the history
Earlier, in case of error, return was called without any call to the
client callback. This change fixes it.
  • Loading branch information
Pratyush Yadav committed May 30, 2018
1 parent 972eb59 commit e53df6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/dev/xen/grant_table/grant_table.c
Expand Up @@ -691,6 +691,7 @@ xen_bus_dmamap_load_callback(void *callback_arg, bus_dma_segment_t
int i;

if(error) {
(*callback)(arg->client_callback_arg, segs, nseg, error);
return;
}

Expand Down

0 comments on commit e53df6c

Please sign in to comment.