mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
allocrqg: Don't ever try to write to a NULL pointer.
Reported by: Jeff Roberson <jeff@midstream.com>
This commit is contained in:
parent
9c23373c4e
commit
c253329a84
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85939
@ -1065,8 +1065,8 @@ allocrqg(struct request *rq, int elements)
|
||||
bzero(rqg, size); /* no old junk */
|
||||
rqg->rq = rq; /* point back to the parent request */
|
||||
rqg->count = elements; /* number of requests in the group */
|
||||
rqg->lockbase = -1; /* no lock required yet */
|
||||
}
|
||||
rqg->lockbase = -1; /* no lock required yet */
|
||||
return rqg;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user