Skip to content

Commit

Permalink
Fix to prevent a potential segmentation violation when accessing
Browse files Browse the repository at this point in the history
the compressed configuration data contained in kernels that are
configured with CONFIG_IKCONFIG.
([email protected])
  • Loading branch information
Dave Anderson committed Sep 18, 2019
1 parent 5d43b10 commit 70e794c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -10144,7 +10144,7 @@ static int setup_ikconfig(char *config)
while (whitespace(*ent))
ent++;

if (ent[0] != '#') {
if (STRNEQ(ent, "CONFIG_")) {
add_ikconfig_entry(ent,
&ikconfig_all[kt->ikconfig_ents++]);
if (kt->ikconfig_ents == IKCONFIG_MAX) {
Expand Down

0 comments on commit 70e794c

Please sign in to comment.