From 2e7a7a3534bcf591c0d6c65105b2d845f293112f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 4 Jul 2011 16:21:23 +0200 Subject: North West Logick DMA implementation --- driver/ioctl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'driver/ioctl.c') 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; } /* -- cgit v1.2.3