]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: lustre: Use 'kvfree()' for memory allocated by 'kvzalloc()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 12 May 2018 12:14:26 +0000 (14:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 11:55:06 +0000 (13:55 +0200)
'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>
drivers/staging/lustre/lustre/obdclass/llog.c

index 693e1129f1f98f61e2812f4e61b78ef44022f8e0..5e04d133b59610e7bb5cb3481fdb60271640eb72 100644 (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;
 }