]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r331654, r331869
authorbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 8 Apr 2018 15:35:57 +0000 (15:35 +0000)
committerbrooks <brooks@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 8 Apr 2018 15:35:57 +0000 (15:35 +0000)
commite5968bbdca57e4daed2c915e2dbab343906c96fe
tree7b389cf4cd17241e53d10a31a3112c7aa2b85fe9
parentab78bc5b7401f95d48331844fbd9dbbb79d8983d
MFC r331654, r331869

r331654:
Don't access userspace directly from the kernel in nxge(4).

Update to what the previous code seemed to be doing via the correct
interfaces.  Further issues exist in xge_ioctl_registers(), but this is
debugging code in a driver that has few users and they don't appear to
be crashes or leaks.

Reviewed by: jhb (prior version)
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14848

r331869:
Fix the build on arches with default unsigned char.  Capture the fubyte()
return value in an int as well as the char, and test the full int value
for fubyte() failure.

git-svn-id: svn://svn.freebsd.org/base/stable/10@332280 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/nxge/if_nxge.c