wil6210: pmc logger bug fix
authorVladimir Shulman <QCA_shulmanv@QCA.qualcomm.com>
Sun, 4 Oct 2015 07:23:21 +0000 (10:23 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 9 Oct 2015 08:39:09 +0000 (11:39 +0300)
When allocating pmc descriptor, the structure is
initially created on stack and later copied to
the physical ring (device) memory. The descriptor
structure must be initialized to zero to avoid
garbage configuration, which may result in pmc
mechanism malfunctioning.

Signed-off-by: Vladimir Shulman <QCA_shulmanv@QCA.qualcomm.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/pmc.c

index 8a8cdc61b25ba46f44b97d6b5b698ed70ffecd60..5ca0307a3274dd7ab9cf3d31c950e856aeb343cc 100644 (file)
@@ -110,7 +110,7 @@ void wil_pmc_alloc(struct wil6210_priv *wil,
         */
        for (i = 0; i < num_descriptors; i++) {
                struct vring_tx_desc *_d = &pmc->pring_va[i];
-               struct vring_tx_desc dd, *d = &dd;
+               struct vring_tx_desc dd = {}, *d = &dd;
                int j = 0;
 
                pmc->descriptors[i].va = dma_alloc_coherent(dev,
This page took 0.026233 seconds and 5 git commands to generate.