Skip to content
Commit 564b5c54 authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm table: audit all dm_table_get_target() callers



All callers of dm_table_get_target() are expected to do proper bounds
checking on the index they pass.

Move dm_table_get_target() to dm-core.h to make it extra clear that only
DM core code should be using it. Switch it to be inlined while at it.

Standardize all DM core callers to use the same for loop pattern and
make associated variables as local as possible. Rename some variables
(e.g. s/table/t/ and s/tgt/ti/) along the way.

Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 2aec377a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment