Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf lock: Fix option value type in parse_max_stack

The value is a void* and the address of an int, max_stack_depth, is
set up in the perf lock options. The parse_max_stack function treats
the int* as a long*, make this more correct by declaring the value to
be an int*.

Fixes: 0a277b622670 ("perf lock contention: Check --max-stack option")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Ian Rogers and committed by
Namhyung Kim
cfaade34 46a009cf

+1 -1
+1 -1
tools/perf/builtin-lock.c
··· 2250 2250 static int parse_max_stack(const struct option *opt, const char *str, 2251 2251 int unset __maybe_unused) 2252 2252 { 2253 - unsigned long *len = (unsigned long *)opt->value; 2253 + int *len = opt->value; 2254 2254 long val; 2255 2255 char *endptr; 2256 2256