]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Coverity Model Update
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Wed, 19 Oct 2022 20:28:52 +0000 (16:28 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 29 Nov 2022 18:00:56 +0000 (10:00 -0800)
commiteb1ed2a66b7fddb30d62fb90bea1f8afa722098a
tree486125bc6ad0ea81a799c78c8f1a3eb56a1ed70a
parent97fac0fb70e35bb01c0d97f227c802c0fcbbf3da
Coverity Model Update

When reviewing Clang Static Analyzer reports against a branch that had
experimental header changes based on the Coverity model file to inform
it that KM_SLEEP allocations cannot return NULL, I found a report saying
that a KM_PUSHPAGE allocation returned NULL. The actual implementation
does not return NULL unless KM_NOSLEEP has been passed, so we backport
the correction from the experimental header changes to the Coverity
model.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14210
contrib/coverity/model.c