From: Christophe JAILLET Date: Sat, 12 May 2018 12:14:26 +0000 (+0200) Subject: staging: lustre: Use 'kvfree()' for memory allocated by 'kvzalloc()' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6c66a7b097f42ebf4c3ec03699e3409e14d68389;p=linux.git 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 Fixes: 11c647caf74b ("staging: lustre: obdclass: variable llog chunk size") Reviewed-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/obdclass/llog.c b/drivers/staging/lustre/lustre/obdclass/llog.c index 693e1129f1f98..5e04d133b5961 100644 --- a/drivers/staging/lustre/lustre/obdclass/llog.c +++ b/drivers/staging/lustre/lustre/obdclass/llog.c @@ -385,7 +385,7 @@ out: if (cd) cd->lpcd_last_idx = last_called_index; - kfree(buf); + kvfree(buf); lpi->lpi_rc = rc; return 0; }