Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Not at all sure how it works backwards like that....
But MT_DATA is 1 and M_NOWAIT is 1 also maybe?
Comment Actions
Yea, when the function gets called with M_WAITOK,
it sets the mbuf type to 2 (which does not seem to be
defined as a type and always did the call with M_NOWAIT.
I suspect an allocation failure with M_NOWAIT is rare and,
since the code checks for a NULL reply, it probably wasn't
breaking things badly.
However, it should obviously be fixed. Good catch!