HomeFreeBSD

MFC r358630:

Description

MFC r358630:

bnxt(4): Fix ioctls when user addresses are inaccessable.

Check copyin's error code (differ adding copyout checks at this time).

Don't directly access user memory in the switch statement.

Since bnxt_ioctl_data isn't all that big, use a stack allocation.

Reviewed by: jhb
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D23933

Details

Provenance
brooksAuthored on
Reviewer
jhb
Differential Revision
D23933: bnxt(4): Fix ioctls when user addresses are inaccessable.
Parents
rS359025: MFC r358630:
Branches
Unknown
Tags
Unknown