Revision 18e962ac0781bcb70d433de3b2a325ff792b4288 authored by Omar Sandoval on 12 November 2018, 08:08:46 UTC, committed by Jens Axboe on 12 November 2018, 15:28:37 UTC
When copying to the latency type, we should be passing LATENCY_TYPE_LEN, not DOMAIN_LEN (this isn't a problem in practice because we only pass "total" or "I/O"). Fix it by changing all of the strlcpy() calls to use sizeof(). Fixes: 6c3b7af1c975 ("kyber: add tracepoints") Reported-by: Jordan Glover <Golden_Miller83@protonmail.ch> Tested-by: Jordan Glover <Golden_Miller83@protonmail.ch> Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent de7b75d
File | Mode | Size |
---|---|---|
Documentation | ||
arch | ||
.gitignore | -rw-r--r-- | 42 bytes |
Build | -rw-r--r-- | 505 bytes |
Makefile | -rw-r--r-- | 1.7 KB |
arch.h | -rw-r--r-- | 1.9 KB |
builtin-check.c | -rw-r--r-- | 1.9 KB |
builtin-orc.c | -rw-r--r-- | 1.7 KB |
builtin.h | -rw-r--r-- | 1012 bytes |
cfi.h | -rw-r--r-- | 1.4 KB |
check.c | -rw-r--r-- | 53.4 KB |
check.h | -rw-r--r-- | 2.2 KB |
elf.c | -rw-r--r-- | 13.8 KB |
elf.h | -rw-r--r-- | 3.0 KB |
objtool.c | -rw-r--r-- | 3.0 KB |
orc.h | -rw-r--r-- | 948 bytes |
orc_dump.c | -rw-r--r-- | 4.3 KB |
orc_gen.c | -rw-r--r-- | 4.8 KB |
special.c | -rw-r--r-- | 4.6 KB |
special.h | -rw-r--r-- | 1.1 KB |
sync-check.sh | -rwxr-xr-x | 584 bytes |
warn.h | -rw-r--r-- | 1.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...