HomeFreeBSD

Fix a case where a request frame can be composed that requires 2 or more

Description

Fix a case where a request frame can be composed that requires 2 or more
SGList elements, but there's only enough space in the request frame for
either 1 element or a chain frame pointer. Previously, the code would
hit the wrong case, add the SGList element, but then fail to add the
chain frame due to lack of space. Re-arrange the code to catch this case
earlier and handle it.

Sponsored by: Netflix

Details

Provenance
scottlAuthored on
Parents
rS328918: Return a C errno for cam_periph_acquire().
Branches
Unknown
Tags
Unknown