Re: prevent short transfer in lptwrite()

2015-05-10 Thread Philip Guenther
On Thu, Apr 9, 2015 at 11:10 AM, Martin Natano wrote: > uio_resid may overflow when coerced to u_int, causing lptwrite() to > return early. Also, uiomovei() can be replaced with uiomove(), the size > argument is of type size_t anyway. Committed as well.

prevent short transfer in lptwrite()

2015-04-09 Thread Martin Natano
uio_resid may overflow when coerced to u_int, causing lptwrite() to return early. Also, uiomovei() can be replaced with uiomove(), the size argument is of type size_t anyway. Index: dev/ic/lpt.c === RCS file: /cvs/src/sys/dev/ic/lpt.c