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

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
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment