mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
usb: renesas_usbhs: add error reason for usbhs_pipe_malloc
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
af32fe5113
commit
f429ea3f34
1 changed files with 4 additions and 1 deletions
|
@ -758,8 +758,11 @@ struct usbhs_pipe *usbhs_pipe_malloc(struct usbhs_priv *priv,
|
|||
u16 pipecfg, pipebuf, pipemaxp;
|
||||
|
||||
pipe = usbhsp_get_pipe(priv, usb_endpoint_type(desc));
|
||||
if (!pipe)
|
||||
if (!pipe) {
|
||||
dev_err(dev, "can't get pipe (%s)\n",
|
||||
usbhsp_pipe_name[usb_endpoint_type(desc)]);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
usbhs_fifo_disable(pipe);
|
||||
|
||||
|
|
Loading…
Reference in a new issue