The drop implementation of struct MmapXenGrant issues an Ioctl call, which uses the file descriptor.
Currently the FileOffset is getting dropped before that, and results in "Bad File Descriptor" error from the Ioctl. This commit fixes it by keeping a copy of the same in struct MmapXenGrant.
The drop implementation of
struct MmapXenGrant
issues an Ioctl call, which uses the file descriptor.Currently the FileOffset is getting dropped before that, and results in "Bad File Descriptor" error from the Ioctl. This commit fixes it by keeping a copy of the same in
struct MmapXenGrant
.