Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4518c530 authored by Amir Samuelov's avatar Amir Samuelov Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: fix spcom getting the file dentry



The struct file no longer has the f_dentry macro.
The dentry is fetched from the f_path->dentry.

Change-Id: I7508effec34074aeb5f2d388e00efd688bf1afe8
Signed-off-by: default avatarAmir Samuelov <amirs@codeaurora.org>
parent e3d934fa
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1846,10 +1846,10 @@ static char *file_to_filename(struct file *filp)
	struct dentry *dentry = NULL;
	char *filename = NULL;

	if (!filp || !filp->f_dentry)
	if (!filp || !filp->f_path.dentry)
		return "unknown";

	dentry = filp->f_dentry;
	dentry = filp->f_path.dentry;
	filename = dentry->d_iname;

	return filename;