Re: [PATCH v2 2/4] staging: sm750fb: use strcmp() for exact option matching

From: Dan Carpenter

Date: Wed Feb 04 2026 - 06:11:58 EST


On Wed, Feb 04, 2026 at 10:15:34AM +0000, Artem Lytkin wrote:
> Replace strncmp(opt, "...", strlen("...")) with strcmp() in option
> parsing functions. Options from strsep() are complete null-terminated
> tokens, so prefix matching via strncmp() could cause false positives
> for options like "noaccelXYZ" matching "noaccel".
>
> Signed-off-by: Artem Lytkin <iprintercanon@xxxxxxxxx>
> ---

You've changed how the code works and this is a bugfix. It should have
a Fixes tag.

regards,
dan carpenter