diff options
author | jhb <jhb@FreeBSD.org> | 2007-03-26 15:39:49 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2007-03-26 15:39:49 +0000 |
commit | 5b625587f4d7a6d9b3004bb23346afc1a01c5d7f (patch) | |
tree | 99db518c6a0bf102729f84c08d5a087c8344f5d6 /sys/i386 | |
parent | c2c01f044f1ab6ae72be93d67baac72a8f61ea1f (diff) | |
download | FreeBSD-src-5b625587f4d7a6d9b3004bb23346afc1a01c5d7f.zip FreeBSD-src-5b625587f4d7a6d9b3004bb23346afc1a01c5d7f.tar.gz |
Fix a silly bogon that broke ibcs2_rename().
CID: 1065
Found by: Coverity Prevent (tm)
Reported by: netchild
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/ibcs2/ibcs2_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/ibcs2/ibcs2_misc.c b/sys/i386/ibcs2/ibcs2_misc.c index 46542ba1..f6375c3 100644 --- a/sys/i386/ibcs2/ibcs2_misc.c +++ b/sys/i386/ibcs2/ibcs2_misc.c @@ -1220,7 +1220,7 @@ ibcs2_rename(td, uap) * errors. */ error = ibcs2_emul_find(td, uap->to, UIO_USERSPACE, &to, 1); - if (link == NULL) { + if (to == NULL) { free(from, M_TEMP); return (error); } |