- Timestamp:
- Sep 16, 2009 11:59:55 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c
r22989 r23062 1426 1426 vnode_t *pVNodeHeld = NULL; 1427 1427 rc = lookupname(pszDev, UIO_SYSSPACE, FOLLOW, NULLVPP, &pVNodeHeld); 1428 if (!rc) 1428 if ( !rc 1429 && pVNodeHeld) 1429 1430 { 1430 1431 TIUSER *pUser; … … 1432 1433 if (!rc) 1433 1434 { 1434 *ppVNode = pUser->fp->f_vnode; 1435 *ppVNodeHeld = pVNodeHeld; 1436 *ppUser = pUser; 1437 return VINF_SUCCESS; 1438 } 1435 if ( pUser 1436 && pUser->fp 1437 && pUser->fp->f_vnode) 1438 { 1439 *ppVNode = pUser->fp->f_vnode; 1440 *ppVNodeHeld = pVNodeHeld; 1441 *ppUser = pUser; 1442 return VINF_SUCCESS; 1443 } 1444 else 1445 { 1446 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenDev failed. pUser=%p fp=%p f_vnode=%p\n", pUser, pUser ? pUser->fp : NULL, 1447 pUser && pUser->fp ? pUser->fp->f_vnode : NULL)); 1448 } 1449 1450 if (pUser) 1451 t_kclose(pUser, 0); 1452 } 1453 else 1454 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenDev t_kopen failed. rc=%d\n", rc)); 1455 1439 1456 VN_RELE(pVNodeHeld); 1440 1457 } 1458 else 1459 LogRel((DEVICE_NAME ":vboxNetFltSolarisOpenDev lookupname failed. rc=%d pVNodeHeld=%p\n", rc, pVNodeHeld)); 1460 1441 1461 return VERR_PATH_NOT_FOUND; 1442 1462 }
Note:
See TracChangeset
for help on using the changeset viewer.