- Fix crash when hitting unknown syscall. Copied from i386-fbsd.c

Approved by:	alfred
This commit is contained in:
Pav Lucistnik 2006-05-15 21:03:02 +00:00
parent 7a0761c19c
commit 1675c32154
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158626
5 changed files with 10 additions and 5 deletions

View File

@ -242,7 +242,8 @@ amd64_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general

View File

@ -219,7 +219,8 @@ i386_linux_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "linux_execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general

View File

@ -219,7 +219,8 @@ i386_linux_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "linux_execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general

View File

@ -223,7 +223,8 @@ ia64_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general

View File

@ -259,7 +259,8 @@ sparc64_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general