Fix a file descriptor leak in cam_lookup_pass() when the ioctl to find
the passthru device fails.

Approved by:	re (scottl)
This commit is contained in:
marcus 2006-05-01 00:21:47 +00:00
parent 7bedbff357
commit bf090cbba6

View File

@ -514,6 +514,7 @@ cam_lookup_pass(const char *dev_name, int unit, int flags,
"%s: %s%s", func_name, func_name, strerror(errno),
(errno == ENOENT) ? tmpstr : "");
close(fd);
return(NULL);
}