aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/istallion.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/istallion.c')
-rw-r--r--drivers/char/istallion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c
index 8f591945ebd9..b6f0d036a760 100644
--- a/drivers/char/istallion.c
+++ b/drivers/char/istallion.c
@@ -4194,7 +4194,7 @@ static ssize_t stli_memread(struct file *fp, char __user *buf, size_t count, lof
4194 void *p; 4194 void *p;
4195 loff_t off = *offp; 4195 loff_t off = *offp;
4196 4196
4197 brdnr = iminor(fp->f_dentry->d_inode); 4197 brdnr = iminor(fp->f_path.dentry->d_inode);
4198 if (brdnr >= stli_nrbrds) 4198 if (brdnr >= stli_nrbrds)
4199 return -ENODEV; 4199 return -ENODEV;
4200 brdp = stli_brds[brdnr]; 4200 brdp = stli_brds[brdnr];
@@ -4258,7 +4258,7 @@ static ssize_t stli_memwrite(struct file *fp, const char __user *buf, size_t cou
4258 void *p; 4258 void *p;
4259 loff_t off = *offp; 4259 loff_t off = *offp;
4260 4260
4261 brdnr = iminor(fp->f_dentry->d_inode); 4261 brdnr = iminor(fp->f_path.dentry->d_inode);
4262 4262
4263 if (brdnr >= stli_nrbrds) 4263 if (brdnr >= stli_nrbrds)
4264 return -ENODEV; 4264 return -ENODEV;