usb: gadget: f_uac2: improve error handling
authorPeter Chen <peter.chen@nxp.com>
Wed, 4 Jan 2017 02:19:22 +0000 (10:19 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 09:04:11 +0000 (11:04 +0200)
commit88f950a69174eca60d3e7df558ecb53d6d4d4e6f
treeb8be5372a58b9469e01e9db9b9c86e2155c887b9
parent07423fd8e0e06f252d9126611b985bacde6878be
usb: gadget: f_uac2: improve error handling

If it is out of memory, we should return -ENOMEM;

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_uac2.c