Merge branch 'linux-4.7' of git://github.com/skeggsb/linux into drm-fixes
[cascardo/linux.git] / drivers / target / target_core_pr.c
index b179573..47463c9 100644 (file)
@@ -1985,7 +1985,7 @@ static int __core_scsi3_write_aptpl_to_file(
                return -EMSGSIZE;
        }
 
-       snprintf(path, 512, "/var/target/pr/aptpl_%s", &wwn->unit_serial[0]);
+       snprintf(path, 512, "%s/pr/aptpl_%s", db_root, &wwn->unit_serial[0]);
        file = filp_open(path, flags, 0600);
        if (IS_ERR(file)) {
                pr_err("filp_open(%s) for APTPL metadata"