mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
Clarify clean up path of empty dm_target structure.
This commit is contained in:
committed by
Milan Broz
parent
f391f4baf1
commit
5a8b95aa45
@@ -1597,6 +1597,9 @@ static void _dm_target_free_query_path(struct crypt_device *cd, struct dm_target
|
||||
|
||||
static void _dm_target_erase(struct crypt_device *cd, struct dm_target *tgt)
|
||||
{
|
||||
if (tgt->direction == TARGET_EMPTY)
|
||||
return;
|
||||
|
||||
if (tgt->direction == TARGET_QUERY)
|
||||
_dm_target_free_query_path(cd, tgt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user