Slightly modify my previous change to return EINVAL instead of EFAULT.
Slightly modify my previous change to return EINVAL instead of
EFAULT.

Submitted by:	Peter Wemm

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase