Skip to content
Commit 1598a015 authored by Meetakshi Setiya's avatar Meetakshi Setiya Committed by Greg Kroah-Hartman
Browse files

cifs: fixes for get_inode_info

[ Upstream commit fc20c523 ]

Fix potential memory leaks, add error checking, remove unnecessary
initialisation of status_file_deleted and do not use cifs_iget() to get
inode in reparse_info_to_fattr since fattrs may not be fully set.

Fixes: ffceb764

 ("smb: client: do not defer close open handles to deleted files")
Reported-by: default avatarPaulo Alcantara <pc@manguebit.com>
Signed-off-by: default avatarMeetakshi Setiya <msetiya@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 91cdeb0d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment