From 79841dae2a46510253155a14e07d71b5c0894286 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 1 Oct 2003 10:59:49 -0700 Subject: [PATCH] [PATCH] ioctl32 fix to SG_IO From: Arun Sharma A minor bug fix to the ioctl32 code handling SG_IO. sgio->dxferp is not initialzed properly. --- fs/compat_ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 5b458dcf35610..aefc13935f69c 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -1035,6 +1035,7 @@ static int sg_build_iovec(sg_io_hdr_t *sgio, void *dxferp, u16 iovec_count) return -EFAULT; } + sgio->dxferp = iov; return 0; } -- 2.53.0