commit | 779debdf26d4b49598e61e0c28ac97146a2b96fe | [log] [tgz] |
---|---|---|
author | Felipe F. Tonello <eu@felipetonello.com> | Tue Oct 27 10:36:32 2015 +0000 |
committer | Peter Chen <peter.chen@freescale.com> | Thu Dec 24 14:15:26 2015 +0800 |
tree | f7f8690838478842e3d19203c136ff498cd58883 | |
parent | e46fed9fb3a12b1070e2cc5ad03a21b84f94408d [diff] |
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>