From 9ecaea0a6a98714388385f6e91aec5329ba987fb Mon Sep 17 00:00:00 2001 From: Stuart MacDonald Date: Wed, 31 May 2006 13:28:40 -0400 Subject: [PATCH] --- yaml --- r: 28363 b: refs/heads/master c: 09fd6bc8b453c9215e81911cbb6882556aa03639 h: refs/heads/master i: 28361: 4781d76678db5853942302bb3acb42260400fb13 28359: 8709addffbf5d487fbaeb3cfa3b646dac49fcdaf v: v3 --- [refs] | 2 +- trunk/drivers/usb/serial/whiteheat.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 4c9339b1a256..8c33fb1f6a85 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 069e8a65cd7970b15672825541be59218d9a8a0f +refs/heads/master: 09fd6bc8b453c9215e81911cbb6882556aa03639 diff --git a/trunk/drivers/usb/serial/whiteheat.c b/trunk/drivers/usb/serial/whiteheat.c index 582860ac8764..5b06fa366098 100644 --- a/trunk/drivers/usb/serial/whiteheat.c +++ b/trunk/drivers/usb/serial/whiteheat.c @@ -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]) {