Skip to content
Commit 779debdf authored by Felipe F. Tonello's avatar Felipe F. Tonello Committed by Peter Chen
Browse files

usb: chipidea: udc: improve error handling on _hardware_enqueue



_hardware_enqueue() didn't check for errors when using
add_td_to_list() which can fail if dma_pool_alloc fails, thus
causing a kernel panic when lastnode->ptr is NULL.

Signed-off-by: default avatarFelipe F. Tonello <eu@felipetonello.com>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
parent e46fed9f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment