lkml.org 
[lkml]   [2019]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 073/100] aio: initialize kiocb private in case any filesystems expect it.
    Date
    From: Mike Marshall <hubcap@omnibond.com>

    commit ec51f8ee1e63498e9f521ec0e5a6d04622bb2c67 upstream.

    A recent optimization had left private uninitialized.

    Fixes: 2bc4ca9bb600 ("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>
    Cc: Guenter Roeck <linux@roeck-us.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    fs/aio.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/fs/aio.c
    +++ b/fs/aio.c
    @@ -1430,6 +1430,7 @@ static int aio_prep_rw(struct kiocb *req
    if (unlikely(!req->ki_filp))
    return -EBADF;
    req->ki_complete = aio_complete_rw;
    + req->private = NULL;
    req->ki_pos = iocb->aio_offset;
    req->ki_flags = iocb_flags(req->ki_filp);
    if (iocb->aio_flags & IOCB_FLAG_RESFD)

    \
     
     \ /
      Last update: 2019-04-30 13:47    [W:4.202 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site