|
@@ -131,7 +131,7 @@ static void kgdboc_unregister_kbd(void)
|
|
|
|
|
|
static int kgdboc_option_setup(char *opt)
|
|
static int kgdboc_option_setup(char *opt)
|
|
{
|
|
{
|
|
- if (strlen(opt) > MAX_CONFIG_LEN) {
|
|
|
|
|
|
+ if (strlen(opt) >= MAX_CONFIG_LEN) {
|
|
printk(KERN_ERR "kgdboc: config string too long\n");
|
|
printk(KERN_ERR "kgdboc: config string too long\n");
|
|
return -ENOSPC;
|
|
return -ENOSPC;
|
|
}
|
|
}
|