vfs_glusterfs: Fix the wrong pointer being sent in glfs_fsync_async
authorPoornima G <pgurusid@redhat.com>
Thu, 22 Feb 2018 10:51:35 +0000 (16:21 +0530)
committerGünther Deschner <gd@samba.org>
Mon, 26 Feb 2018 19:17:50 +0000 (20:17 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13297

Pair-Programmed-With: Anoop C S <anoopcs@redhat.com>
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Mon Feb 26 20:17:50 CET 2018 on sn-devel-144

source3/modules/vfs_glusterfs.c

index f9a96fa004d3ddc72832f74104b7035a328004ad..38abb78f1f3b1affc728913d16701d4f0d2972c7 100644 (file)
@@ -961,7 +961,7 @@ static struct tevent_req *vfs_gluster_fsync_send(struct vfs_handle_struct
 
        PROFILE_TIMESTAMP(&state->start);
        ret = glfs_fsync_async(*(glfs_fd_t **)VFS_FETCH_FSP_EXTENSION(handle,
-                               fsp), aio_glusterfs_done, req);
+                               fsp), aio_glusterfs_done, state);
        if (ret < 0) {
                tevent_req_error(req, -ret);
                return tevent_req_post(req, ev);