diff --git a/arch/um/drivers/vector_kern.c b/arch/um/drivers/vector_kern.c index bb83a2d22ac22a25b0c1718d5d20aa32734a40f8..063c76b3a21527935d5ce0ca9a1da74cb5e71b61 100644 --- a/arch/um/drivers/vector_kern.c +++ b/arch/um/drivers/vector_kern.c @@ -723,7 +723,7 @@ static int vector_config(char *str, char **error_out) */ params = kstrdup(params, GFP_KERNEL); - if (str == NULL) { + if (params == NULL) { *error_out = "vector_config failed to strdup string"; return -ENOMEM; }