mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
When we have found a chunk of memory that is large enough and have computed
a correctly aligned address in this block we really want to check, that the part of the chunk that starts at the aligned address is large enough with regard to the original request. Comparing it to 0 makes no sense, because this is always true except in the rare case, that the aligned address is just at the end of the chunk. Approved by: jake (mentor)
This commit is contained in:
parent
76d6aef572
commit
dce4c82d8e
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ eni_allocate_buffer ( eup, size )
|
|||
/*
|
||||
* If we use this alignment, will it still fit?
|
||||
*/
|
||||
if ( (eptr->size - (nbase - eptr->base)) >= 0 )
|
||||
if ( (eptr->size - (nbase - eptr->base)) >= nsize )
|
||||
{
|
||||
Mbd *etmp;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue