From: Jacek Caban Subject: [PATCH] server: Pass proper async object to queue_irp in device_file_flush. Message-Id: Date: Tue, 2 Jan 2018 13:56:54 +0100 Signed-off-by: Jacek Caban --- server/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/device.c b/server/device.c index 65ae659e9c..dcc29461f5 100644 --- a/server/device.c +++ b/server/device.c @@ -516,7 +516,7 @@ static int device_file_flush( struct fd *fd, struct async *async ) memset( ¶ms, 0, sizeof(params) ); params.flush.major = IRP_MJ_FLUSH_BUFFERS; params.flush.file = file->user_ptr; - return queue_irp( file, ¶ms, NULL ); + return queue_irp( file, ¶ms, async ); } static int device_file_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )