/drivers/video/drm/drm_mm.c |
---|
355,7 → 355,7 |
if (entry->size >= size + wasted) { |
if (!best_match) |
return entry; |
if (size < best_size) { |
if (entry->size < best_size) { |
best = entry; |
best_size = entry->size; |
} |
405,7 → 405,7 |
if (entry->size >= size + wasted) { |
if (!best_match) |
return entry; |
if (size < best_size) { |
if (entry->size < best_size) { |
best = entry; |
best_size = entry->size; |
} |