diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2018-05-12 14:14:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-14 13:55:06 +0200 |
commit | 6c66a7b097f42ebf4c3ec03699e3409e14d68389 (patch) | |
tree | b7e66b8f5f1ff243f1392654d507d6ecc313e25d | |
parent | 3368b7f65aadac0455ba6bc184454cded0aab95d (diff) | |
download | linux-stable-6c66a7b097f42ebf4c3ec03699e3409e14d68389.tar.gz linux-stable-6c66a7b097f42ebf4c3ec03699e3409e14d68389.tar.bz2 linux-stable-6c66a7b097f42ebf4c3ec03699e3409e14d68389.zip |
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: 11c647caf74b ("staging: lustre: obdclass: variable llog chunk size")
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/lustre/lustre/obdclass/llog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/llog.c b/drivers/staging/lustre/lustre/obdclass/llog.c index 693e1129f1f9..5e04d133b596 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; } |