mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	ecryptfs: ->lower_path.dentry is never NULL
... on anything found via ->d_fsdata Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
		
							parent
							
								
									92dd123033
								
							
						
					
					
						commit
						cbe9c08524
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -81,8 +81,7 @@ static void ecryptfs_d_release(struct dentry *dentry)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct ecryptfs_dentry_info *p = dentry->d_fsdata;
 | 
						struct ecryptfs_dentry_info *p = dentry->d_fsdata;
 | 
				
			||||||
	if (p) {
 | 
						if (p) {
 | 
				
			||||||
		if (p->lower_path.dentry)
 | 
							path_put(&p->lower_path);
 | 
				
			||||||
			path_put(&p->lower_path);
 | 
					 | 
				
			||||||
		call_rcu(&p->rcu, ecryptfs_dentry_free_rcu);
 | 
							call_rcu(&p->rcu, ecryptfs_dentry_free_rcu);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue