Skip to content
Commit f50f25e9 authored by Per Astrand's avatar Per Astrand Committed by Kristofer Jonsson
Browse files

Check size of buffer before allocating

Avoid undefined behaviour from calling dma_alloc_coherent with
requested size=0 as reported by UBSAN.

Change-Id: I1732759464f1d88259edeea099b1729f4ae6b86f
parent 6ab0b6ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment