aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2022-01-19 17:38:03 -0600
committerJarkko Sakkinen <[email protected]>2022-03-08 10:33:18 +0200
commit2dd634664d4128668c44bc9e497af24157f1eef4 (patch)
tree9945378cda1bf9fc68321d664f461d93b9b95068 /net/lapb/lapb_subr.c
parent8bdc3e05cc78513b7495366ef9b962a3ea568e8e (diff)
tpm: xen-tpmfront: Use struct_size() helper
Make use of the struct_size() helper instead of an open-coded version, in order to avoid any potential type mistakes or integer overflows that, in the worse scenario, could lead to heap overflows. Also, address the following sparse warning: drivers/char/tpm/xen-tpmfront.c:131:16: warning: using sizeof on a flexible structure Link: https://github.com/KSPP/linux/issues/160 Link: https://github.com/KSPP/linux/issues/174 Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions