aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2020-08-04 11:52:13 +0900
committerSteven Rostedt (VMware) <[email protected]>2020-08-04 16:52:15 -0400
commit477d08478170469d10b533624342d13701e24b34 (patch)
tree481b4ff48900be8875688dedc63178f743c787bb /scripts/gcc-plugins/cyc_complexity_plugin.c
parentc58b46cba71750c6e969625abb1cf3ddabb15e06 (diff)
bootconfig: Fix to find the initargs correctly
Since the parse_args() stops parsing at '--', bootconfig_params() will never get the '--' as param and initargs_found never be true. In the result, if we pass some init arguments via the bootconfig, those are always appended to the kernel command line with '--' even if the kernel command line already has '--'. To fix this correctly, check the return value of parse_args() and set initargs_found true if the return value is not an error but a valid address. Link: https://lkml.kernel.org/r/159650953285.270383.14822353843556363851.stgit@devnote2 Fixes: f61872bb58a1 ("bootconfig: Use parse_args() to find bootconfig and '--'") Cc: [email protected] Reported-by: Arvind Sankar <[email protected]> Suggested-by: Arvind Sankar <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions