Merge branch 'scsi-target-for-v4.10' of git://git.kernel.org/pub/scm/linux/kernel...
[platform/kernel/linux-rpi.git] / drivers / target / target_core_configfs.c
index a35a347..54b36c9 100644 (file)
@@ -144,12 +144,12 @@ static ssize_t target_core_item_dbroot_store(struct config_item *item,
                return -EINVAL;
        }
        if (!S_ISDIR(file_inode(fp)->i_mode)) {
-               filp_close(fp, 0);
+               filp_close(fp, NULL);
                mutex_unlock(&g_tf_lock);
                pr_err("db_root: not a directory: %s\n", db_root_stage);
                return -EINVAL;
        }
-       filp_close(fp, 0);
+       filp_close(fp, NULL);
 
        strncpy(db_root, db_root_stage, read_bytes);