Skip to content

Commit

Permalink
staging: lustre: Use 'kvfree()' for memory allocated by 'kvzalloc()'
Browse files Browse the repository at this point in the history
'buf' is allocated with 'kvzalloc()'. 'kvfree()' must be used to free it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Fixes: 11c647c ("staging: lustre: obdclass: variable llog chunk size")
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
tititiou36 authored and gregkh committed May 14, 2018
1 parent 3368b7f commit 6c66a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/lustre/lustre/obdclass/llog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6c66a7b

Please sign in to comment.