diff options
author | root <root@iss-tomyspiel-l> | 2011-07-04 16:21:23 +0200 |
---|---|---|
committer | root <root@iss-tomyspiel-l> | 2011-07-04 16:21:23 +0200 |
commit | 2e7a7a3534bcf591c0d6c65105b2d845f293112f (patch) | |
tree | d0e5d2f9ea246ff55134205f7ac3af0d9599e641 /driver/ioctl.c | |
parent | 70937611e34577151a6607640050e8b164a54e70 (diff) | |
download | pcitool-2e7a7a3534bcf591c0d6c65105b2d845f293112f.tar.gz pcitool-2e7a7a3534bcf591c0d6c65105b2d845f293112f.tar.bz2 pcitool-2e7a7a3534bcf591c0d6c65105b2d845f293112f.tar.xz pcitool-2e7a7a3534bcf591c0d6c65105b2d845f293112f.zip |
North West Logick DMA implementation
Diffstat (limited to 'driver/ioctl.c')
-rw-r--r-- | driver/ioctl.c | 7 |
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; } /* |