Re: [PATCH] fs: ntfs3: fix Using uninitialized value n when calling indx_read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch is sended from address chinayanlei2002@xxxxxxx you need to send it from yan_lei@xxxxxxxxxxxxx this was probably mistake?

Also please write commit message. Always good to write how did you spot this and what message some analyzer showed to you. This way everyone else will can verify and maybe even learn to use new tools. This also looks like it really fix something so this needs fix tag so it can be easily back ported to stable.

On 10.4.2022 9.09, chinayanlei2002@xxxxxxx wrote:
From: Yan Lei <yan_lei@xxxxxxxxxxxxx>

Signed-off-by: Yan Lei <yan_lei@xxxxxxxxxxxxx>
---
  fs/ntfs3/index.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ntfs3/index.c b/fs/ntfs3/index.c
index 6f81e3a49..76ebea253 100644
--- a/fs/ntfs3/index.c
+++ b/fs/ntfs3/index.c
@@ -1994,7 +1994,7 @@ static int indx_free_children(struct ntfs_index *indx, struct ntfs_inode *ni,
  			      const struct NTFS_DE *e, bool trim)
  {
  	int err;
-	struct indx_node *n;
+	struct indx_node *n = NULL;
  	struct INDEX_HDR *hdr;
  	CLST vbn = de_get_vbn(e);
  	size_t i;




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux