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 |
---|---|---|
assoc_array.rst | -rw-r--r-- | 20.8 KB |
atomic_ops.rst | -rw-r--r-- | 22.7 KB |
boot-time-mm.rst | -rw-r--r-- | 1.4 KB |
cachetlb.rst | -rw-r--r-- | 17.2 KB |
circular-buffers.rst | -rw-r--r-- | 8.2 KB |
conf.py | -rw-r--r-- | 212 bytes |
cpu_hotplug.rst | -rw-r--r-- | 15.7 KB |
debug-objects.rst | -rw-r--r-- | 11.3 KB |
errseq.rst | -rw-r--r-- | 6.4 KB |
flexible-arrays.rst | -rw-r--r-- | 5.9 KB |
genalloc.rst | -rw-r--r-- | 5.8 KB |
genericirq.rst | -rw-r--r-- | 12.6 KB |
gfp_mask-from-fs-io.rst | -rw-r--r-- | 3.0 KB |
idr.rst | -rw-r--r-- | 2.9 KB |
index.rst | -rw-r--r-- | 805 bytes |
kernel-api.rst | -rw-r--r-- | 7.9 KB |
librs.rst | -rw-r--r-- | 5.9 KB |
local_ops.rst | -rw-r--r-- | 7.2 KB |
memory-allocation.rst | -rw-r--r-- | 5.7 KB |
memory-hotplug.rst | -rw-r--r-- | 4.7 KB |
mm-api.rst | -rw-r--r-- | 1.6 KB |
printk-formats.rst | -rw-r--r-- | 12.9 KB |
refcount-vs-atomic.rst | -rw-r--r-- | 5.2 KB |
timekeeping.rst | -rw-r--r-- | 7.1 KB |
tracepoint.rst | -rw-r--r-- | 1.5 KB |
workqueue.rst | -rw-r--r-- | 15.3 KB |
xarray.rst | -rw-r--r-- | 19.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...