mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
ring-buffer: replace sizeof of event header with offsetof
Impact: fix to possible alignment problems on some archs. Some arch compilers include an NULL char array in the sizeof field. Since the ring_buffer_event type includes one of these, it is better to use the "offsetof" instead, to avoid strange bugs on these archs. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
This commit is contained in:
parent
ef7a4a1614
commit
e3d6bf0a07
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue