diff options
| author | NeilBrown <[email protected]> | 2011-07-28 07:56:24 +1000 |
|---|---|---|
| committer | NeilBrown <[email protected]> | 2011-07-28 07:56:24 +1000 |
| commit | a519b26dbe6533416d21b552053b0bf687f878d7 (patch) | |
| tree | bef24eab8604ef2275eb8f1b591ea52bd4b89194 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | 768e587e18c1c4ce0403b9532115752189422408 (diff) | |
md: remove suspicious size_of()
When calling bioset_create we pass the size of the front_pad as
sizeof(mddev)
which looks suspicious as mddev is a pointer and so it looks like a
common mistake where
sizeof(*mddev)
was intended.
The size is actually correct as we want to store a pointer in the
front padding of the bios created by the bioset, so make the intent
more explicit by using
sizeof(mddev_t *)
Reported-by: Zdenek Kabelac <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions