diff options
| author | Christophe JAILLET <[email protected]> | 2021-12-17 08:38:14 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2021-12-17 08:40:29 +0000 |
| commit | bb7125739611acbbce8182ed98ad700f03ebac18 (patch) | |
| tree | 8630ce24ae5f6940fba5faebe1605647e63e002a /lib/string_helpers.c | |
| parent | iommu/vt-d: Remove unused macros (diff) | |
| download | kernel-bb7125739611acbbce8182ed98ad700f03ebac18.tar.gz kernel-bb7125739611acbbce8182ed98ad700f03ebac18.zip | |
iommu/vt-d: Use bitmap_zalloc() when applicable
'iommu->domain_ids' is a bitmap. So use 'bitmap_zalloc()' to simplify code
and improve the semantic.
Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
consistency.
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/cb7a3e0a8d522447a06298a4f244c3df072f948b.1635018498.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Lu Baolu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
