diff options
author | Meghana Barkalle <mbarkalle@google.com> | 2023-05-10 21:10:55 +0000 |
---|---|---|
committer | Meghana Barkalle <mbarkalle@google.com> | 2023-05-10 21:16:12 +0000 |
commit | 976bd9a4edfa0cb525599cfdfdc8f6131813950a (patch) | |
tree | f03ee73bc92d5867e0a332abda1edb5cdc9c6dc0 /lwis_transaction.h | |
parent | e6f146eccddb306ee3363e1ff2e9742835d7ee9f (diff) | |
download | lwis-976bd9a4edfa0cb525599cfdfdc8f6131813950a.tar.gz |
LWIS: Fix transaction free
Transaction is not set to NULL appropriately after being freed.
This can lead to usage of transaction even after free in some
cases. This fix will allow setting the freed transaction memory
to NULL appropriately.
Bug: 281124077
Test: GCA Smoke Test
Change-Id: Idf36215eb1fc7cec0f940f0efe7b30dc4ee13fbc
Diffstat (limited to 'lwis_transaction.h')
-rw-r--r-- | lwis_transaction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lwis_transaction.h b/lwis_transaction.h index 5f61f75..5af187d 100644 --- a/lwis_transaction.h +++ b/lwis_transaction.h @@ -87,7 +87,7 @@ void lwis_transaction_fence_trigger(struct lwis_client *client, struct lwis_fenc int lwis_transaction_cancel(struct lwis_client *client, int64_t id); -void lwis_transaction_free(struct lwis_device *lwis_dev, struct lwis_transaction *transaction); +void lwis_transaction_free(struct lwis_device *lwis_dev, struct lwis_transaction **ptransaction); /* Expects lwis_client->transaction_lock to be acquired before calling * the following functions. */ |