diff options
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index bf70a2affb05..ac4feae45eb3 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c | |||
@@ -287,7 +287,7 @@ xfs_readlink_by_handle( | |||
287 | return PTR_ERR(dentry); | 287 | return PTR_ERR(dentry); |
288 | 288 | ||
289 | /* Restrict this handle operation to symlinks only. */ | 289 | /* Restrict this handle operation to symlinks only. */ |
290 | if (!S_ISLNK(dentry->d_inode->i_mode)) { | 290 | if (!d_is_symlink(dentry)) { |
291 | error = -EINVAL; | 291 | error = -EINVAL; |
292 | goto out_dput; | 292 | goto out_dput; |
293 | } | 293 | } |