|
@@ -1,5 +1,6 @@
|
|
|
|
|
|
* Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -80,8 +81,6 @@ static void __dsc_psoc_destroy(struct dsc_psoc **out_psoc)
|
|
|
if (!dsc_assert(psoc))
|
|
|
return;
|
|
|
|
|
|
- *out_psoc = NULL;
|
|
|
-
|
|
|
|
|
|
dsc_assert(qdf_list_empty(&psoc->vdevs));
|
|
|
|
|
@@ -100,6 +99,8 @@ static void __dsc_psoc_destroy(struct dsc_psoc **out_psoc)
|
|
|
qdf_list_destroy(&psoc->vdevs);
|
|
|
psoc->driver = NULL;
|
|
|
|
|
|
+ *out_psoc = NULL;
|
|
|
+
|
|
|
qdf_tfree(psoc);
|
|
|
}
|
|
|
|