linux_dsm_epyc7002/tools
Vaishali Thakkar ca7ce82a28 perf tests: Do not use sizeof on pointer type
Using sizeof on a malloced pointer type will return the wordsize which
can often cause one to allocate a buffer much smaller than it is needed.
So, here do not use sizeof on pointer type.

Note that this has no effect on runtime because 'dsos' is a pointer to a
pointer.

Problem found using Coccinelle.

Signed-off-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1461862017-23358-1-git-send-email-vaishali.thakkar@oracle.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-04-28 15:37:52 -03:00
..
arch
build bpf tools: Fix syscall argument 2016-04-28 09:58:57 -03:00
cgroup
firewire
gpio
hv
iio
include
laptop/freefall
lguest
lib tools lib api fs: Add helper to read string from procfs file 2016-04-26 13:15:00 -03:00
net
nfsd
objtool
perf perf tests: Do not use sizeof on pointer type 2016-04-28 15:37:52 -03:00
power
scripts
spi
testing
thermal/tmon
time
usb
virtio
vm
Makefile tools build: Fix perf_clean target 2016-04-25 17:59:36 -03:00