Skip to content

Commit ec51f8e

Browse files
hubcapscaxboe
authored andcommitted
aio: initialize kiocb private in case any filesystems expect it.
A recent optimization had left private uninitialized. Fixes: 2bc4ca9 ("aio: don't zero entire aio_kiocb aio_get_req()") Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Mike Marshall <hubcap@omnibond.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 9a6d548 commit ec51f8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/aio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,6 +1436,7 @@ static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb)
14361436
if (unlikely(!req->ki_filp))
14371437
return -EBADF;
14381438
req->ki_complete = aio_complete_rw;
1439+
req->private = NULL;
14391440
req->ki_pos = iocb->aio_offset;
14401441
req->ki_flags = iocb_flags(req->ki_filp);
14411442
if (iocb->aio_flags & IOCB_FLAG_RESFD)

0 commit comments

Comments
 (0)