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:
parent
3368b7f65a
commit
6c66a7b097
|
@ -385,7 +385,7 @@ out:
|
|||
if (cd)
|
||||
cd->lpcd_last_idx = last_called_index;
|
||||
|
||||
kfree(buf);
|
||||
kvfree(buf);
|
||||
lpi->lpi_rc = rc;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue