]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Remove extraneous NULL check on M_WAITOK allocation
authorcem <cem@FreeBSD.org>
Tue, 1 Jan 2019 19:56:49 +0000 (19:56 +0000)
committercem <cem@FreeBSD.org>
Tue, 1 Jan 2019 19:56:49 +0000 (19:56 +0000)
commit7263d0bea2c295671a9549a4690f1ffb208e29e0
tree9a238a22f251259bac813431525b85ba0a354c60
parent40f785a247ef459c82b1fe010449c74bf6379e8c
linuxkpi: Remove extraneous NULL check on M_WAITOK allocation

The check was not introduced in r342628, but the subsequent unchecked access to
refs was added then, prompting a Coverity warning about "Null pointer
dereferences (FORWARD_NULL)."  The warning is bogus due to M_WAITOK, but so is
the NULL check that hints it, so just remove it.

CID: 1398588
Reported by: Coverity
sys/compat/linuxkpi/common/include/linux/cdev.h