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

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

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Fixes: 11c647caf7 ("staging: lustre: obdclass: variable llog chunk size")
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christophe JAILLET 2018-05-12 14:14:26 +02:00 committed by Greg Kroah-Hartman
parent 3368b7f65a
commit 6c66a7b097
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ out:
if (cd)
cd->lpcd_last_idx = last_called_index;
kfree(buf);
kvfree(buf);
lpi->lpi_rc = rc;
return 0;
}