Project

General

Profile

Actions

Bug #156

closed

ext2fs: missing braces

Added by csaba.henk over 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

diff r d2ecc0d1cbd4 sys/vfs/gnu/ext2fs/ext2_vnops.c
--
a/sys/vfs/gnu/ext2fs/ext2_vnops.c Tue Apr 25 22:11:28 2006 0000
++ b/sys/vfs/gnu/ext2fs/ext2_vnops.c Thu Apr 27 00:41:58 2006 0200
@ -1099,7 +1099,7 @ ext2_symlink(struct vop_old_symlink_args
bcopy(ap->a_target, (char )ip->i_shortlink, len);
ip->i_size = len;
ip->i_flag |= IN_CHANGE | IN_UPDATE;
- } else
} else {
/
* Make sure we have a VM object in order to use * the buffer cache.
@ -1110,6 +1110,8 @ ext2_symlink(struct vop_old_symlink_args
error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0,
UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred, (int *)0,
NULL);
+ }
+
if (error)
vput(vp);
return (error);

Actions #1

Updated by swildner over 15 years ago

Csaba Henk wrote:

diff r d2ecc0d1cbd4 sys/vfs/gnu/ext2fs/ext2_vnops.c
--
a/sys/vfs/gnu/ext2fs/ext2_vnops.c Tue Apr 25 22:11:28 2006 0000
++ b/sys/vfs/gnu/ext2fs/ext2_vnops.c Thu Apr 27 00:41:58 2006 0200
@ -1099,7 +1099,7 @ ext2_symlink(struct vop_old_symlink_args
bcopy(ap->a_target, (char )ip->i_shortlink, len);
ip->i_size = len;
ip->i_flag |= IN_CHANGE | IN_UPDATE;
- } else
} else {
/
  • Make sure we have a VM object in order to use
  • the buffer cache.
    @ -1110,6 +1110,8 @ ext2_symlink(struct vop_old_symlink_args
    error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0,
    UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred, (int *)0,
    NULL);
    + }
    +
    if (error)
    vput(vp);
    return (error);

Committed, thx.

Sascha

Actions

Also available in: Atom PDF