summaryrefslogtreecommitdiffstats
path: root/driver/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/ioctl.c')
-rw-r--r--driver/ioctl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/driver/ioctl.c b/driver/ioctl.c
index dacf94a..64985e8 100644
--- a/driver/ioctl.c
+++ b/driver/ioctl.c
@@ -218,7 +218,12 @@ static int ioctl_kmem_sync(pcidriver_privdata_t *privdata, unsigned long arg)
int ret;
READ_FROM_USER(kmem_sync_t, ksync);
- return pcidriver_kmem_sync(privdata, &ksync);
+ if ((ret = pcidriver_kmem_sync(privdata, &ksync)) != 0)
+ return ret;
+
+ WRITE_TO_USER(kmem_sync_t, ksync);
+
+ return 0;
}
/*