Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0de80a7 authored by Yue Ma's avatar Yue Ma
Browse files

cnss: Fix a boundary check bug in cnss prealloc driver



Currently the driver gives a memory slot only if its size is greater
than the memory requested by the caller. This will waste a bigger slot
if the memory requested is equal to the slot size. Hence fix it by
adding the equal check when a memory slot is requested.

Change-Id: Ib48477607e9332c8942894301ead606a31fa3284
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 8562c3ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment