Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c66a7b0 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Greg Kroah-Hartman
Browse files

staging: lustre: Use 'kvfree()' for memory allocated by 'kvzalloc()'



'buf' is allocated with 'kvzalloc()'. 'kvfree()' must be used to free it.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fixes: 11c647ca ("staging: lustre: obdclass: variable llog chunk size")
Reviewed-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3368b7f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -385,7 +385,7 @@ static int llog_process_thread(void *arg)
	if (cd)
		cd->lpcd_last_idx = last_called_index;

	kfree(buf);
	kvfree(buf);
	lpi->lpi_rc = rc;
	return 0;
}