mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
bad: Disconnect link when select board fails
Exit bad as it fails to open a board, so that we don't just rely on the client to read this message and close the link. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
4
bad.c
4
bad.c
@@ -95,8 +95,10 @@ static void msg_select_board(const void *param)
|
||||
struct msg reply = { MSG_SELECT_BOARD, 0 };
|
||||
|
||||
selected_device = device_open(param, &fastboot_ops);
|
||||
if (!selected_device)
|
||||
if (!selected_device) {
|
||||
fprintf(stderr, "failed to open %s\n", (const char *)param);
|
||||
quit_invoked = true;
|
||||
}
|
||||
|
||||
write(STDOUT_FILENO, &reply, sizeof(reply));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user