From: Thorsten Blum Date: Sat, 8 Mar 2025 19:53:53 +0000 (+0100) Subject: bcachefs: Remove unnecessary byte allocation X-Git-Tag: v6.15-rc1~146^2~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c073ec6bec0d05781380ecabca9e8611e4b48502;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Remove unnecessary byte allocation The extra byte is not used - remove it. Signed-off-by: Thorsten Blum Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fs-ioctl.c b/fs/bcachefs/fs-ioctl.c index 17c035f9d6291..5b47b94fe1ea4 100644 --- a/fs/bcachefs/fs-ioctl.c +++ b/fs/bcachefs/fs-ioctl.c @@ -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;