Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Chris Gilbert <chris@netbsd.org>
List: source-changes
Date: 03/18/2006 17:44:13
Module Name: src
Committed By: chris
Date: Sat Mar 18 17:44:13 UTC 2006
Modified Files:
src/sys/kern: kern_systrace.c
Log Message:
Move check of strp for NULL to the top of the function, if it's NULL
release the lock and exit.
It could be argued that we only ever call the function with strp being
valid so the test isn't needed, but that requires the caller not to change,
or be altered/broken.
Fixes Coverity CID 2357, strp deferenced before NULL check.
To generate a diff of this commit:
cvs rdiff -r1.51 -r1.52 src/sys/kern/kern_systrace.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.