Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28363
b: refs/heads/master
c: 09fd6bc
h: refs/heads/master
i:
  28361: 4781d76
  28359: 8709add
v: v3
  • Loading branch information
Stuart MacDonald authored and Greg Kroah-Hartman committed Jun 21, 2006
1 parent 3750d9e commit 9ecaea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 069e8a65cd7970b15672825541be59218d9a8a0f
refs/heads/master: 09fd6bc8b453c9215e81911cbb6882556aa03639
4 changes: 2 additions & 2 deletions trunk/drivers/usb/serial/whiteheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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]) {
Expand Down

0 comments on commit 9ecaea0

Please sign in to comment.