Skip to content

Commit d3876d1

Browse files
committed
dm: remove unneeded kvfree from alloc_targets
JIRA: https://issues.redhat.com/browse/RHEL-119009 Upstream Status: kernel/git/torvalds/linux.git commit d90e7a5 Author: Benjamin Marzinski <bmarzins@redhat.com> Date: Tue Apr 15 00:17:15 2025 -0400 dm: remove unneeded kvfree from alloc_targets alloc_targets() is always called with a newly initialized table where t->highs == NULL. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
1 parent 62a2ff7 commit d3876d1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/md/dm-table.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ static int alloc_targets(struct dm_table *t, unsigned int num)
117117
n_targets = (struct dm_target *) (n_highs + num);
118118

119119
memset(n_highs, -1, sizeof(*n_highs) * num);
120-
kvfree(t->highs);
121120

122121
t->num_allocated = num;
123122
t->highs = n_highs;

0 commit comments

Comments
 (0)