]> git.baikalelectronics.ru Git - kernel.git/commit
mei: hbm: use sizeof of variable instead of struct type
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 23 Jul 2020 14:59:22 +0000 (17:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2020 17:33:08 +0000 (19:33 +0200)
commit2495571f07be9623cc3a24b7fa9ecc05406f6a5e
tree9e6cf9ff82019a8fbdf369ead46485e7c5901312
parent2d5e4d6f58a6a517543c39974cc13fdb9c5b79b5
mei: hbm: use sizeof of variable instead of struct type

There is a possibility of bug when variable type has changed but
corresponding struct passed to the sizeof has not.

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-2-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hbm.c