From 0646ee0ed86bd2809e10cff1f8ca3310ad7bf33b Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 11 May 2026 22:50:08 -0700 Subject: [PATCH] fs: ubifs: remove dead code This code is dead because it appears after an infinite loop; remove it. Fixes: d5888d509cc4 ("fs: ubifs: fix bugs involving symlinks in ubifs_findfile") Signed-off-by: Peter Collingbourne Reviewed-by: Heiko Schocher hs: corrected the commit ID --- fs/ubifs/ubifs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index aafbd01a028..3f2e2037745 100644 --- a/fs/ubifs/ubifs.c +++ b/fs/ubifs/ubifs.c @@ -608,9 +608,6 @@ static unsigned long ubifs_findfile(struct super_block *sb, char *filename) root_inum = inum; name = next; } - - kfree(buf); - return 0; } int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)