diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 95bd604c381999e3c9ad0f4448a3b92dc39538b2..5ea4815a02426de57ce1ac7329ba83a6c9650ca2 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -4637,7 +4637,7 @@ static int smack_inode_copy_up(struct dentry *dentry, struct cred **new)
 	/*
 	 * Get label from overlay inode and set it in create_sid
 	 */
-	isp = smack_inode(d_inode(dentry->d_parent));
+	isp = smack_inode(d_inode(dentry));
 	skp = isp->smk_inode;
 	tsp->smk_task = skp;
 	*new = new_creds;