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

Commit ba66ad90 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss: Fix a boundary check bug in cnss prealloc driver"

parents ce199d13 d0de80a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ void *wcnss_prealloc_get(unsigned int size)
		if (wcnss_allocs[i].occupied)
			continue;

		if (wcnss_allocs[i].size > size) {
		if (wcnss_allocs[i].size >= size) {
			/* we found the slot */
			wcnss_allocs[i].occupied = 1;
			spin_unlock_irqrestore(&alloc_lock, flags);