summaryrefslogtreecommitdiffstats
path: root/short/short.c
diff options
context:
space:
mode:
Diffstat (limited to 'short/short.c')
-rw-r--r--short/short.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/short/short.c b/short/short.c
index d372d5a..25ee0da 100644
--- a/short/short.c
+++ b/short/short.c
@@ -189,7 +189,7 @@ ssize_t do_short_read (struct inode *inode, struct file *filp, char __user *buf,
*/
ssize_t short_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
{
- return do_short_read(filp->f_dentry->d_inode, filp, buf, count, f_pos);
+ return do_short_read(file_dentry(filp)->d_inode, filp, buf, count, f_pos);
}
@@ -251,7 +251,7 @@ ssize_t do_short_write (struct inode *inode, struct file *filp, const char __use
ssize_t short_write(struct file *filp, const char __user *buf, size_t count,
loff_t *f_pos)
{
- return do_short_write(filp->f_dentry->d_inode, filp, buf, count, f_pos);
+ return do_short_write(file_dentry(filp)->d_inode, filp, buf, count, f_pos);
}