aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/firmware_class.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/firmware_class.c')
-rw-r--r--drivers/base/firmware_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 4a223fedcd73..4b1f9265887f 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -279,7 +279,7 @@ MODULE_PARM_DESC(path, "customized firmware image search path with a higher prio
279static noinline_for_stack long fw_file_size(struct file *file) 279static noinline_for_stack long fw_file_size(struct file *file)
280{ 280{
281 struct kstat st; 281 struct kstat st;
282 if (vfs_getattr(file->f_path.mnt, file->f_path.dentry, &st)) 282 if (vfs_getattr(&file->f_path, &st))
283 return -1; 283 return -1;
284 if (!S_ISREG(st.mode)) 284 if (!S_ISREG(st.mode))
285 return -1; 285 return -1;