mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
perf lock: Fix option value type in parse_max_stack
[ Upstream commitcfaade34b5] 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:0a277b6226("perf lock contention: Check --max-stack option") Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9bab7d2a28
commit
ea0078135c
@@ -2271,7 +2271,7 @@ static int parse_map_entry(const struct option *opt, const char *str,
|
||||
static int parse_max_stack(const struct option *opt, const char *str,
|
||||
int unset __maybe_unused)
|
||||
{
|
||||
unsigned long *len = (unsigned long *)opt->value;
|
||||
int *len = opt->value;
|
||||
long val;
|
||||
char *endptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user