diff options
| author | Zhang Qian <zhangq@codeaurora.org> | 2016-08-29 13:58:14 +0800 |
|---|---|---|
| committer | Zhang Qian <zhangq@codeaurora.org> | 2016-09-09 19:09:51 +0800 |
| commit | fb3bc617e223a76e7394158d9d58ff5ad257de80 (patch) | |
| tree | 8a54499dfd9ab2c3bdb4f8f07cca7a75a52d372d | |
| parent | 2444665984c7b4aaf6fd497ccdf324082f8f8692 (diff) | |
qcacld-2.0: Add tx_completion spin lock init
The tx_completion_lock is not initialized before lock acquiring.
So for 3.18 kernel, there will be kernel crash at driver loading.
Change-Id: If949b23345314c33ac32b059ba37d759e3ecf8ec
CRs-Fixed: 1060419
| -rw-r--r-- | CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c b/CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c index 24131f292538..d881945be04d 100644 --- a/CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c +++ b/CORE/SERVICES/HIF/sdio/linux/native_sdio/src/hif.c @@ -821,6 +821,7 @@ static int tx_completion_task(void *param) */ static inline void tx_completion_sem_init(HIF_DEVICE *device) { + spin_lock_init(&device->tx_completion_lock); sema_init(&device->sem_tx_completion, 0); } @@ -2803,4 +2804,4 @@ int hif_reset_target(HIF_DEVICE *hif_device) done: return ret; -}
\ No newline at end of file +} |
