aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-01-04 12:10:53 +0000
committerRafael J. Wysocki <[email protected]>2021-01-07 18:16:03 +0100
commit66e713fbbbc6c259559d4937a3b016d36ab529ff (patch)
tree8a78fb8439a51663eadee79912d9e94bb6ef7bc8 /scripts/bpf_helpers_doc.py
parentf8f706ad75abbc65fee365853e7b24731223fd6d (diff)
powercap/drivers/dtpm: Fix size of object being allocated
The kzalloc allocation for dtpm_cpu is currently allocating the size of the pointer and not the size of the structure. Fix this by using the correct sizeof argument. Addresses-Coverity: ("Wrong sizeof argument") Fixes: 0e8f68d7f048 ("powercap/drivers/dtpm: Add CPU energy model based support") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Daniel Lezcano <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions