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

Commit 09fd6bc8 authored by Stuart MacDonald's avatar Stuart MacDonald Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: Whiteheat: fix firmware spurious errors



Attached patch fixes spurious errors during firmware load.

Signed-off-by: default avatarStuart MacDonald <stuartm@connecttech.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 069e8a65
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -388,7 +388,7 @@ static int whiteheat_attach (struct usb_serial *serial)
	if (ret) {
		err("%s: Couldn't send command [%d]", serial->type->description, ret);
		goto no_firmware;
	} else if (alen != sizeof(command)) {
	} else if (alen != 2) {
		err("%s: Send command incomplete [%d]", serial->type->description, alen);
		goto no_firmware;
	}
@@ -400,7 +400,7 @@ static int whiteheat_attach (struct usb_serial *serial)
	if (ret) {
		err("%s: Couldn't get results [%d]", serial->type->description, ret);
		goto no_firmware;
	} else if (alen != sizeof(result)) {
	} else if (alen != sizeof(*hw_info) + 1) {
		err("%s: Get results incomplete [%d]", serial->type->description, alen);
		goto no_firmware;
	} else if (result[0] != command[0]) {