Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Benjamin Marzinski and committed by
Mikulas Patocka
d90e7a50 97693781

-1
-1
drivers/md/dm-table.c
··· 117 117 n_targets = (struct dm_target *) (n_highs + num); 118 118 119 119 memset(n_highs, -1, sizeof(*n_highs) * num); 120 - kvfree(t->highs); 121 120 122 121 t->num_allocated = num; 123 122 t->highs = n_highs;