mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
If we're going to assert that logData != NULL, do it before we
try to dereference logData. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
This commit is contained in:
parent
8d4fdfaf45
commit
bff4678e78
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126101
@ -690,9 +690,9 @@ rf_ParityLogAppend(
|
||||
*
|
||||
* NON-BLOCKING */
|
||||
|
||||
RF_ASSERT(logData != NULL);
|
||||
raidPtr = logData->common->raidPtr;
|
||||
/* lock the region for the first item in logData */
|
||||
RF_ASSERT(logData != NULL);
|
||||
regionID = logData->regionID;
|
||||
RF_LOCK_MUTEX(raidPtr->regionInfo[regionID].mutex);
|
||||
RF_ASSERT(raidPtr->regionInfo[regionID].loggingEnabled);
|
||||
|
Loading…
Reference in New Issue
Block a user