]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_link.c
xnu-344.23.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_link.c
index 97a36516cf4579d150d35c3b92326acfca74cede..3761c0e35f17b5b42d5846f0386d3d0de8e5f46d 100644 (file)
@@ -294,7 +294,9 @@ hfs_link(ap)
        if (hfsmp->jnl) {
            if (journal_start_transaction(hfsmp->jnl) != 0) {
                        hfs_global_shared_lock_release(hfsmp);
-                       return EINVAL;
+                       VOP_ABORTOP(tdvp, cnp);
+                       error = EINVAL;  /* cannot link to a special file */
+                       goto out1;
            }
        }