Use uiomove return value instead of returning 0.
This commit is contained in:
parent
72794e9e2c
commit
07ab70a447
@ -569,9 +569,9 @@ ams_read(struct cdev *dev, struct uio *uio, int flag)
|
||||
|
||||
mtx_unlock(&sc->sc_mtx);
|
||||
|
||||
uiomove(outpacket,len,uio);
|
||||
error = uiomove(outpacket,len,uio);
|
||||
|
||||
return (0);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user