projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49449c3
)
x86, msr: Use file_inode(), not f_mapping->host
author
Andre Richter
<andre.o.richter@gmail.com>
Tue, 8 Oct 2013 09:22:22 +0000
(11:22 +0200)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Tue, 8 Oct 2013 19:01:29 +0000
(12:01 -0700)
As discussed in [1], exchange f_mapping->host with file_inode(). This
is a bug, but happens to be non-manifest in this case.
[1] http://lkml.kernel.org/r/
20131007190357
.GA13318@ZenIV.linux.org.uk
Signed-off-by: Andre Richter <andre.o.richter@gmail.com>
Link:
http://lkml.kernel.org/r/1381224142-3267-1-git-send-email-andre.o.richter@gmail.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/msr.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/msr.c
b/arch/x86/kernel/msr.c
index 88458faea2f8f0ace5ae6d2b02a451bf43a2d9af..05266b5aae22916e864bb21e1399193ff253374e 100644
(file)
--- a/
arch/x86/kernel/msr.c
+++ b/
arch/x86/kernel/msr.c
@@
-46,7
+46,7
@@
static struct class *msr_class;
static loff_t msr_seek(struct file *file, loff_t offset, int orig)
{
loff_t ret;
- struct inode *inode = file
->f_mapping->host
;
+ struct inode *inode = file
_inode(file)
;
mutex_lock(&inode->i_mutex);
switch (orig) {
This page took
0.026575 seconds
and
5
git commands to generate.