projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd15b58
)
thor: fix error path after g_dnl_register() failure
author
Marek Szyprowski
<m.szyprowski@samsung.com>
Wed, 2 Oct 2019 12:29:21 +0000
(14:29 +0200)
committer
Marek Vasut
<marek.vasut+renesas@gmail.com>
Thu, 31 Oct 2019 11:12:31 +0000
(12:12 +0100)
Set command return value and perform needed cleanup when g_dnl_register()
function fails.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
cmd/thordown.c
patch
|
blob
|
history
diff --git
a/cmd/thordown.c
b/cmd/thordown.c
index dd0544d475723d14ce6bd298963ca62e411d42ed..8dae024e31db2bc601c617c4a302932a66a5e4bf 100644
(file)
--- a/
cmd/thordown.c
+++ b/
cmd/thordown.c
@@
-40,7
+40,8
@@
int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
ret = g_dnl_register("usb_dnl_thor");
if (ret) {
pr_err("g_dnl_register failed %d\n", ret);
- return ret;
+ ret = CMD_RET_FAILURE;
+ goto exit;
}
ret = thor_init();