diff options
Diffstat (limited to 'drivers/misc/kgdbts.c')
| -rw-r--r-- | drivers/misc/kgdbts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/kgdbts.c b/drivers/misc/kgdbts.c index 59c118c19a91..74f16f167b8e 100644 --- a/drivers/misc/kgdbts.c +++ b/drivers/misc/kgdbts.c | |||
| @@ -645,7 +645,7 @@ static int validate_simple_test(char *put_str) | |||
| 645 | 645 | ||
| 646 | while (*chk_str != '\0' && *put_str != '\0') { | 646 | while (*chk_str != '\0' && *put_str != '\0') { |
| 647 | /* If someone does a * to match the rest of the string, allow | 647 | /* If someone does a * to match the rest of the string, allow |
| 648 | * it, or stop if the recieved string is complete. | 648 | * it, or stop if the received string is complete. |
| 649 | */ | 649 | */ |
| 650 | if (*put_str == '#' || *chk_str == '*') | 650 | if (*put_str == '#' || *chk_str == '*') |
| 651 | return 0; | 651 | return 0; |
| @@ -988,7 +988,7 @@ static void kgdbts_run_tests(void) | |||
| 988 | 988 | ||
| 989 | static int kgdbts_option_setup(char *opt) | 989 | static int kgdbts_option_setup(char *opt) |
| 990 | { | 990 | { |
| 991 | if (strlen(opt) > MAX_CONFIG_LEN) { | 991 | if (strlen(opt) >= MAX_CONFIG_LEN) { |
| 992 | printk(KERN_ERR "kgdbts: config string too long\n"); | 992 | printk(KERN_ERR "kgdbts: config string too long\n"); |
| 993 | return -ENOSPC; | 993 | return -ENOSPC; |
| 994 | } | 994 | } |
