Skip to content

Commit 4531482

Browse files
committed
tests: udc: fix double free
When the UDC device is enabled, the dequeue operation automatically frees the enqueued buffer. Signed-off-by: Jordan Yates <[email protected]>
1 parent cc07b48 commit 4531482

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/drivers/udc/src/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,6 @@ ZTEST(udc_driver_test, test_udc_enabled)
576576
test_udc_ep_halt(dev, &ed_bulk_out);
577577
test_udc_ep_disable(dev, &ed_bulk_out);
578578
test_udc_ep_dequeue(dev, &ed_bulk_out);
579-
test_udc_ep_buf_free(dev, buf);
580579

581580
err = udc_shutdown(dev);
582581
zassert_equal(err, -EBUSY, "Not failed to shoot-down UDC driver");

0 commit comments

Comments
 (0)