diff options
Diffstat (limited to 'drivers/firmware/efivars.c')
-rw-r--r-- | drivers/firmware/efivars.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index 0d504971ed4c..1b9a6e17e3dc 100644 --- a/drivers/firmware/efivars.c +++ b/drivers/firmware/efivars.c | |||
@@ -974,8 +974,8 @@ static bool efivarfs_valid_name(const char *str, int len) | |||
974 | if (len < GUID_LEN + 2) | 974 | if (len < GUID_LEN + 2) |
975 | return false; | 975 | return false; |
976 | 976 | ||
977 | /* GUID should be right after the first '-' */ | 977 | /* GUID must be preceded by a '-' */ |
978 | if (s - 1 != strchr(str, '-')) | 978 | if (*(s - 1) != '-') |
979 | return false; | 979 | return false; |
980 | 980 | ||
981 | /* | 981 | /* |