[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 2/2] tools/libs/gnttab: decouple more from mini-os
On 07/01/2022 10:35, Juergen Gross wrote: > @@ -54,8 +70,11 @@ int osdep_gnttab_close(xengnttab_handle *xgt) > > void minios_gnttab_close_fd(int fd) > { > - gntmap_fini(&files[fd].gntmap); > - files[fd].type = FTYPE_NONE; > + struct file *file = get_file_from_fd(fd); > + > + gntmap_fini(file->dev); > + free(file->dev); file->dev = NULL ? Particularly as this is a pointer in a global files[] array. Otherwise, LGTM. ~Andrew
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |