]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bcachefs: Remove unnecessary byte allocation
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 8 Mar 2025 19:53:53 +0000 (20:53 +0100)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:16 +0000 (21:02 -0400)
The extra byte is not used - remove it.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-ioctl.c

index 17c035f9d629178032c391bfec6ebaf4788de8c7..5b47b94fe1ea4dd00634caff9ccecb6c4364d6e3 100644 (file)
@@ -244,7 +244,7 @@ static int bch2_ioc_reinherit_attrs(struct bch_fs *c,
        int ret = 0;
        subvol_inum inum;
 
-       kname = kmalloc(BCH_NAME_MAX + 1, GFP_KERNEL);
+       kname = kmalloc(BCH_NAME_MAX, GFP_KERNEL);
        if (!kname)
                return -ENOMEM;