diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2018-04-17 18:32:26 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-04-30 11:51:39 -0400 |
commit | fc8cec113904a47396bf0a1afc62920d66319d36 (patch) | |
tree | 4b6545a93e8c44e1bc00b9f423a0948488f70506 /drivers/md | |
parent | 6da6c0db5316275015e8cc2959f12a17584aeb64 (diff) | |
download | linux-fc8cec113904a47396bf0a1afc62920d66319d36.tar.gz linux-fc8cec113904a47396bf0a1afc62920d66319d36.tar.bz2 linux-fc8cec113904a47396bf0a1afc62920d66319d36.zip |
dm integrity: use kvfree for kvmalloc'd memory
Use kvfree instead of kfree because the array is allocated with kvmalloc.
Fixes: 7eada909bfd7a ("dm: add integrity target")
Cc: stable@vger.kernel.org # v4.12+
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-integrity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 77d9fe58dae2..514fb4aec5d1 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -2440,7 +2440,7 @@ static void dm_integrity_free_journal_scatterlist(struct dm_integrity_c *ic, str unsigned i; for (i = 0; i < ic->journal_sections; i++) kvfree(sl[i]); - kfree(sl); + kvfree(sl); } static struct scatterlist **dm_integrity_alloc_journal_scatterlist(struct dm_integrity_c *ic, struct page_list *pl) |