Skip to content
Snippets Groups Projects
Commit b25e5f1c authored by Wei Yongjun's avatar Wei Yongjun Committed by Felipe Balbi
Browse files

usb: musb: dsps: fix error return code in dsps_create_musb_pdev()


Fix to return -ENOMEM in the devm_kzalloc() error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 8fe61203
No related branches found
No related tags found
No related merge requests found
...@@ -560,6 +560,7 @@ static int dsps_create_musb_pdev(struct dsps_glue *glue, u8 id) ...@@ -560,6 +560,7 @@ static int dsps_create_musb_pdev(struct dsps_glue *glue, u8 id)
if (!config) { if (!config) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"failed to allocate musb hdrc config\n"); "failed to allocate musb hdrc config\n");
ret = -ENOMEM;
goto err2; goto err2;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment