]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
usb: chipidea: usb2: check memory allocation failure
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 25 Aug 2017 05:22:53 +0000 (07:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 09:44:39 +0000 (11:44 +0200)
commit49ca2eff5758eb73cc906dbea74ce54b7c99e4d1
tree1162ce19f3f62298e4b7f353141c1801ac900e4e
parenta1279ef74eeeb5f627f091c71d80dd7ac766c99d
usb: chipidea: usb2: check memory allocation failure

Check memory allocation failure and return -ENOMEM in such a case, as
already done few lines below for another memory allocation.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_usb2.c