aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-23 12:12:30 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-23 12:12:30 +0200
commit8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194 (patch)
tree87ea49abbf5a0a859f85af4f44cc4eaa978555bf /scripts
parent4b7594e81e4d92f44dddd2b7fe690caa9c7049b6 (diff)
downloadlinux-conf-perf-8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194.tar.gz
linux-conf-perf-8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194.tar.bz2
linux-conf-perf-8b7cf3523a2cee38ff1846f1871dc4cfa7d9d194.zip
parse_kconfig: fix SIGSEGV caused by wrong approach to expression negation
Diffstat (limited to 'scripts')
-rw-r--r--scripts/parse_kconfig/cnfexpr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/parse_kconfig/cnfexpr.c b/scripts/parse_kconfig/cnfexpr.c
index 2a22a3c..c9151bf 100644
--- a/scripts/parse_kconfig/cnfexpr.c
+++ b/scripts/parse_kconfig/cnfexpr.c
@@ -151,9 +151,7 @@ struct cnfexpr *cnf_eql(struct symlist *sl, bool not, struct symbol *sym1,
return fls;
}
if (!strcmp(sym2->name, "n")) {
- struct cnfexpr *w = cnf_sym(sl, not, sym1);
- w->exprs[0][0] *= -1;
- return w;
+ return cnf_sym(sl, !not, sym1);
}
if (!strcmp(sym2->name, "y")) {
return cnf_sym(sl, not, sym1);