Bug 224004 - Use MACH_PORT_VALID() when wanting to check if a mach port is valid
Summary: Use MACH_PORT_VALID() when wanting to check if a mach port is valid
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-31 09:59 PDT by Chris Dumez
Modified: 2021-03-31 17:40 PDT (History)
5 users (show)

See Also:


Attachments
Patch (6.94 KB, patch)
2021-03-31 10:01 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2021-03-31 09:59:11 PDT
Use MACH_PORT_VALID() when wanting to check if a mach port is valid, instead of checking for MACH_PORT_NULL. MACH_PORT_VALID() is the correct way to check for validity since it also checks for the MACH_PORT_DEAD value.
Comment 1 Chris Dumez 2021-03-31 10:01:17 PDT
Created attachment 424783 [details]
Patch
Comment 2 EWS 2021-03-31 17:39:52 PDT
Committed r275327: <https://commits.webkit.org/r275327>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 424783 [details].
Comment 3 Radar WebKit Bug Importer 2021-03-31 17:40:19 PDT
<rdar://problem/76080057>