Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 086ed9a0 authored by Lee Jones's avatar Lee Jones Committed by Felipe Balbi
Browse files

usb: musb: ux500_dma: fix potential NULL dereference error



static checker warning: "drivers/usb/musb/ux500_dma.c:335
ux500_dma_controller_start()
         error: potential NULL dereference 'param_array'."

Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 5056ee83
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -336,7 +336,9 @@ static int ux500_dma_controller_start(struct ux500_dma_controller *controller)
							    data ?
							    data->dma_filter :
							    NULL,
							    param_array[ch_num]);
							    param_array ?
							    param_array[ch_num] :
							    NULL);

			if (!ux500_channel->dma_chan) {
				ERR("Dma pipe allocation error dir=%d ch=%d\n",