Use the MAKEDEV_CHECKNAME flag to check for an invalid device name and return
an error instead of panicking.

Obtained from:	NetApp


git-svn-id: svn://svn.freebsd.org/base/head@249435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix changes made in r249408.

In some cases, kern_envp is set by the architecture code and env_pos does
not contain the length of the static kernel environment. In these cases
r249408 causes the kernel to discard the environment.

Fix this by updating the check for empty static env to *kern_envp != '\0'

Reported by:	np@


git-svn-id: svn://svn.freebsd.org/base/head@249436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFprojects/camlock r248894:
Use full freeze while PMP does hard reset. This is only cosmetical change.


git-svn-id: svn://svn.freebsd.org/base/head@249438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix the name of the pcb member in the comments.

Submitted by:	Oliver Pinter <oliver.pntr@gmail.com>
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@249439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
move the error report to a lower log level...  Now you can see when it
returns an error without getting every single io that went through it..

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@249440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/master'