]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove useless comparisions of assigned offset and resid with the
authorkib <kib@FreeBSD.org>
Wed, 13 Nov 2013 08:55:09 +0000 (08:55 +0000)
committerkib <kib@FreeBSD.org>
Wed, 13 Nov 2013 08:55:09 +0000 (08:55 +0000)
commit2e0b8010f904b462d9b7c36810bad096734da8c2
treeb84300ae7ca33c45d327be56d91634cc941c58d5
parentc917df04fa3c99b581e7548f4b0bd7a5db94454b
Remove useless comparisions of assigned offset and resid with the
sources from uio.  Both uio_offset and offset, and uio_resid and resid
have the same types for some time.

Add check for buflen overflow by comparing the buflen with both offset
and resid (vs. comparing with offset only, as it is currently done).

Reported and tested by: pho
Approved by: des (pseudofs maintainer)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/fs/pseudofs/pseudofs_vnops.c