mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix aio eventfd lookup
We're failing to set eventFile in the outer scope. PiperOrigin-RevId: 204392995 Change-Id: Ib9b04f839599ef552d7b5951d08223e2b1d5f6ad
This commit is contained in:
@@ -300,7 +300,7 @@ func submitCallback(t *kernel.Task, id uint64, cb *ioCallback, cbAddr usermem.Ad
|
||||
// Was there an eventFD? Extract it.
|
||||
var eventFile *fs.File
|
||||
if cb.Flags&_IOCB_FLAG_RESFD != 0 {
|
||||
eventFile := t.FDMap().GetFile(kdefs.FD(cb.ResFD))
|
||||
eventFile = t.FDMap().GetFile(kdefs.FD(cb.ResFD))
|
||||
if eventFile == nil {
|
||||
// Bad FD.
|
||||
return syserror.EBADF
|
||||
|
||||
Reference in New Issue
Block a user