diff options
-rw-r--r-- | kmod/muser.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kmod/muser.c b/kmod/muser.c index c8b0a9e..2d9d20d 100644 --- a/kmod/muser.c +++ b/kmod/muser.c @@ -1549,8 +1549,13 @@ static long libmuser_unl_ioctl(struct file *filep, case MUSER_MMAP: ret = mmap_done(mucmd); break; - case MUSER_WRITE: case MUSER_READ: + if (mucmd->muser_cmd.err < 0) { + muser_alert("read failed: %d", + mucmd->muser_cmd.err); + } + break; + case MUSER_WRITE: case MUSER_DMA_MMAP: case MUSER_DMA_MUNMAP: break; |