Skip to content
Commit 8ed24ae3 authored by Emil Gydesen's avatar Emil Gydesen Committed by Benjamin Cabé
Browse files

usb: device_next: Make buf ownership consistent for usbd_uac2_send



The usbd_uac2_send function sometimes took ownership of the
provided buffer in error cases, and sometimes not.

The commit modifies the function so that ownership is never
taken in case a non-0 return value.

Signed-off-by: default avatarEmil Gydesen <emil.gydesen@nordicsemi.no>
parent 4d6372be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment