1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

Fix a silly bogon that broke ibcs2_rename().

CID:		1065
Found by:	Coverity Prevent (tm)
Reported by:	netchild
This commit is contained in:
John Baldwin 2007-03-26 15:39:49 +00:00
parent cad603e388
commit 9a53f6d97a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167900

View File

@ -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);
}