We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc6cd4 commit ac5bfa9Copy full SHA for ac5bfa9
drivers/mtd/spi-nor/core.c
@@ -3281,7 +3281,8 @@ static const struct flash_info *spi_nor_match_name(struct spi_nor *nor,
3281
3282
for (i = 0; i < ARRAY_SIZE(manufacturers); i++) {
3283
for (j = 0; j < manufacturers[i]->nparts; j++) {
3284
- if (!strcmp(name, manufacturers[i]->parts[j].name)) {
+ if (manufacturers[i]->parts[j].name &&
3285
+ !strcmp(name, manufacturers[i]->parts[j].name)) {
3286
nor->manufacturer = manufacturers[i];
3287
return &manufacturers[i]->parts[j];
3288
}
0 commit comments