diff options
author | 2020-07-23 17:59:26 +0300 | |
---|---|---|
committer | 2020-07-23 19:33:09 +0200 | |
commit | c614970e3e5f604f7490e73b465ba66f78f9d715 (patch) | |
tree | a680a1bdf39eef7f616b2b2e539ef477190a1e2b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mei: client: use sizeof of variable instead of struct type (diff) | |
download | wireguard-linux-c614970e3e5f604f7490e73b465ba66f78f9d715.tar.xz wireguard-linux-c614970e3e5f604f7490e73b465ba66f78f9d715.zip |
mei: hw: use sizeof of variable instead of struct type
Use sizeof(*dev) + sizeof(*hw) instead of
sizeof(struct mei_device) + sizeof(struct mei_me_hw)
There is a possibility of bug when variable type has changed but
corresponding struct passed to the sizeof has not.
Cc: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20200723145927.882743-6-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions