[PATCH v3 2/2] Revert "lib/firmware: fix a memory leak with multiple calls of trigger_batched_requests_store()"

From: Mirsad Goran Todorovac
Date: Wed Apr 05 2023 - 21:46:46 EST


This reverts commit d59ff9027c628f0e9be344b28f3576566a274f2f.
---
lib/test_firmware.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/lib/test_firmware.c b/lib/test_firmware.c
index 51377b9ab6e3..454992bfdb2a 100644
--- a/lib/test_firmware.c
+++ b/lib/test_firmware.c
@@ -1036,11 +1036,6 @@ ssize_t trigger_batched_requests_async_store(struct device *dev,

mutex_lock(&test_fw_mutex);

- if (test_fw_config->reqs) {
- rc = -EBUSY;
- goto out;
- }
-
test_fw_config->reqs =
vzalloc(array3_size(sizeof(struct test_batched_req),
test_fw_config->num_requests, 2));
--
2.30.2