From: Henrik Kretzschmar Adds a missing exit, if the file that should be parsed couldn't be opened. Without it crashes with a segfault, cause the filedescriptor is accessed even if the file could not be opened. Signed-off-by: Henrik Kretzschmar Acked-by: Randy Dunlap Signed-off-by: Andrew Morton --- scripts/basic/docproc.c | 1 + 1 file changed, 1 insertion(+) diff -puN scripts/basic/docproc.c~docbook-fix-segfault-in-docprocc scripts/basic/docproc.c --- a/scripts/basic/docproc.c~docbook-fix-segfault-in-docprocc +++ a/scripts/basic/docproc.c @@ -177,6 +177,7 @@ void find_export_symbols(char * filename { fprintf(stderr, "docproc: "); perror(real_filename); + exit(1); } while(fgets(line, MAXLINESZ, fp)) { char *p; _