Merge tag 'xtensa-20161219' of git://github.com/jcmvbkbc/linux-xtensa
[linux-2.6-microblaze.git] / drivers / target / target_core_configfs.c
index 2001005..a35a347 100644 (file)
@@ -143,7 +143,7 @@ static ssize_t target_core_item_dbroot_store(struct config_item *item,
                pr_err("db_root: cannot open: %s\n", db_root_stage);
                return -EINVAL;
        }
-       if (!S_ISDIR(fp->f_inode->i_mode)) {
+       if (!S_ISDIR(file_inode(fp)->i_mode)) {
                filp_close(fp, 0);
                mutex_unlock(&g_tf_lock);
                pr_err("db_root: not a directory: %s\n", db_root_stage);