wtap fix malloc/free.

* Remove malloc/free pointer cast;
* Check return value from malloc;

Submitted by: glebius
Approved by: adrian (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@244399 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
wtap should not set the IEEE80211_F_DATAPAD flag;

Approved by: adrian (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@244400 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Replace our implementation of the vis(3) and unvis(3) APIs with
NetBSD's.  This output size limited versions of vis and unvis functions
as well as a set of vis variants that allow arbitrary characters to be
specified for encoding.

Finally, MIME Quoted-Printable encoding as described in RFC 2045 is
supported.


git-svn-id: svn://svn.freebsd.org/base/head@244401 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
prison_racct_detach can be called for not fully initialized jail, so make it check that the jail has racct before doing anything

PR:		kern/174436
Reviewed by:	trasz
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@244404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
psm: Support detection of Synaptics touchpad v7.5 and above

Starting with firmware v7.5, the "Read TouchPad Modes" ($01) and "Read
Capabilities" ($02) commands changed: previously constant bytes now
carry variable information.

We now compare those bytes to expected constants only for firmware prior
to v7.5.

Tested by:	Zeus Panchenko <zeus@gnu.org.ua>
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@244405 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update arcmsr(4) to vendor version 1.20.00.26, this adds
support for their new RAID adapter ARC-1214.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by:	黃清隆 Ching-Lung Huang <ching2048 areca com tw>
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@244406 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
POSIX requires that non-existent or null arguments be treated as if a
zero argument were supplied.

Add a regression test to catch this case as well.

PR:		bin/174521
Submitted by:	Daniel Shahaf <danielsh@elego.de> (pr)
Submitted by:	Mark Johnston <markjdb@gmail.com> (initial patch)
Reviewed by:	jilles
Approved by:	cperciva (implicit)
MFC after:	3 weeks


git-svn-id: svn://svn.freebsd.org/base/head@244407 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
No reason to install debug data with the schg flag


git-svn-id: svn://svn.freebsd.org/base/head@244408 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add an additional regression tests for other cases to ensure these do not get fixed by accident.


git-svn-id: svn://svn.freebsd.org/base/head@244409 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not use taskqueue to defer completion work when using INTx.  INTx now
matches MSI-X behavior.

Sponsored by:	Intel


git-svn-id: svn://svn.freebsd.org/base/head@244410 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Simplify module definition by adding nvme_modevent to DRIVER_MODULE()
definition.

Submitted by:   Carl Delsey <carl.r.delsey@intel.com>


git-svn-id: svn://svn.freebsd.org/base/head@244411 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add sysctls for changing GPIO pins function

Submitted by:	Luiz Otavio O Souza


git-svn-id: svn://svn.freebsd.org/base/head@244412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Map BAR 4/5, because NVMe spec says devices may place the MSI-X table
behind BAR 4/5, rather than in BAR 0/1 with the control/doorbell registers.

Sponsored by:	Intel


git-svn-id: svn://svn.freebsd.org/base/head@244413 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Properly implement pmap_[get|set]_memattr

Submitted by:	Ian Lepore <freebsd@damnhippie.dyndns.org>


git-svn-id: svn://svn.freebsd.org/base/head@244414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add myself as a new src committer.

Approved by:	emaste (co-mentor)


git-svn-id: svn://svn.freebsd.org/base/head@244415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Eliminate some definitions that haven't been used in a decade or more.


git-svn-id: svn://svn.freebsd.org/base/head@244417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix bug in r242720, that caused additional status page to not be used if
descriptor page is supported.


git-svn-id: svn://svn.freebsd.org/base/head@244418 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The expand_name() function isn't called with the process lock held anymore,
so we can safely use malloc(M_WAITOK) now.

Pointed out by:	kib


git-svn-id: svn://svn.freebsd.org/base/head@244424 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Style cleanups.


git-svn-id: svn://svn.freebsd.org/base/head@244426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not audit paths we try when kern.corefile contains %I.

Obtained from:	WHEEL Systems


git-svn-id: svn://svn.freebsd.org/base/head@244428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f