diff options
author | Felipe F. Tonello <eu@felipetonello.com> | 2015-10-27 13:36:32 +0300 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2015-12-24 09:15:26 +0300 |
commit | 779debdf26d4b49598e61e0c28ac97146a2b96fe (patch) | |
tree | f7f8690838478842e3d19203c136ff498cd58883 /drivers/usb/chipidea/debug.c | |
parent | e46fed9fb3a12b1070e2cc5ad03a21b84f94408d (diff) | |
download | linux-779debdf26d4b49598e61e0c28ac97146a2b96fe.tar.xz |
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>
Diffstat (limited to 'drivers/usb/chipidea/debug.c')
0 files changed, 0 insertions, 0 deletions