diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-08-07 19:11:42 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-08-10 01:07:47 +0200 |
commit | df9d4749250dd8ed56a91336c3c54ea7a52fd1c7 (patch) | |
tree | f8d32144d1113ebc5dec00e3a8d58070f380327e /block/elevator.h | |
parent | selinux: revert SECINITSID_INIT support (diff) | |
download | linux-df9d4749250dd8ed56a91336c3c54ea7a52fd1c7.tar.xz linux-df9d4749250dd8ed56a91336c3c54ea7a52fd1c7.zip |
selinux: avoid implicit conversions in avtab code
Return u32 from avtab_hash() instead of int, since the hashing is done
on u32 and the result is used as an index on the hash array.
Use the type of the limit in for loops.
Avoid signed to unsigned conversion of multiplication result in
avtab_hash_eval() and perform multiplication in destination type.
Use unsigned loop iterator for index operations, to avoid sign
extension.
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'block/elevator.h')
0 files changed, 0 insertions, 0 deletions