aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2022-06-25 14:55:25 +0200
committerUlf Hansson <[email protected]>2022-07-12 12:29:36 +0200
commit2e531bc3e0d86362fcd8a577b3278d9ef3cc2ba0 (patch)
tree61cc8fff355d40e4d489ef31876bf56b489f1d8f /tools/perf/util/scripting-engines/trace-event-python.c
parent088604048b24846d1e79da4c2a73a6f3ad43edb4 (diff)
memstick/ms_block: Fix some incorrect memory allocation
Some functions of the bitmap API take advantage of the fact that a bitmap is an array of long. So, to make sure this assertion is correct, allocate bitmaps with bitmap_zalloc() instead of kzalloc()+hand-computed number of bytes. While at it, also use bitmap_free() instead of kfree() to keep the semantic. Fixes: 0ab30494bc4f ("memstick: add support for legacy memorysticks") Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/dbf633c48c24ae6d95f852557e8d8b3bbdef65fe.1656155715.git.christophe.jaillet@wanadoo.fr Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions