]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: chipidea: udc: improve error handling on _hardware_enqueue
authorFelipe F. Tonello <eu@felipetonello.com>
Tue, 27 Oct 2015 10:36:32 +0000 (10:36 +0000)
committerPeter Chen <peter.chen@freescale.com>
Wed, 28 Oct 2015 05:56:50 +0000 (13:56 +0800)
commitb4065e0c9af8c61dc670a9acb5a467e9609311b1
tree50178b45791e0ba349d5831bb82c065579ddaacc
parentcb4446476814b2bce60b7edcc718126c446c9ab6
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: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/chipidea/udc.c