execve: handle null files
authorAlan Cox <alan@linux.intel.com>
Sat, 27 Dec 2014 13:59:03 +0000 (13:59 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 27 Dec 2014 13:59:03 +0000 (13:59 +0000)
commitbf4d70f439c82d5e88fed3c08822166df87aff47
tree560a4ff989c8057e25810a71075dc94304837568
parent72a4c81b268f8642ae6f391bcc39a3e9d0515982
execve: handle null files

When given an empty file execve was doing a bmap and trying to load block
-1 from the disk. Catch the empty file case earlier and error it.
Kernel/syscall_exec.c