summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib-sysfs.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2023-11-29 15:24:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-13 18:18:15 +0100
commit152f51d159f35b2f64d7046429703500375becc9 (patch)
tree99fe8c9e182f46e46caf9403dc4572ef7fdc797e /drivers/gpio/gpiolib-sysfs.c
parent84ca356ec859478a2524a1885fae4bf7de4003b1 (diff)
perf: Fix perf_event_validate_size()
[ Upstream commit 382c27f4ed28f803b1f1473ac2d8db0afc795a1b ] Budimir noted that perf_event_validate_size() only checks the size of the newly added event, even though the sizes of all existing events can also change due to not all events having the same read_format. When we attach the new event, perf_group_attach(), we do re-compute the size for all events. Fixes: a723968c0ed3 ("perf: Fix u16 overflows") Reported-by: Budimir Markovic <markovicbudimir@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpio/gpiolib-sysfs.c')
0 files changed, 0 insertions, 0 deletions