lkml.org 
[lkml]   [2020]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 12/17] spi: dw: Fix dma_slave_config used partly uninitialized
    On Fri, May 08, 2020 at 04:29:37PM +0300, Serge Semin wrote:
    > Since the TX and RX DMA-slave config structures are declared on the
    > stack and only a part of their fields is initialized further in the
    > prepare Tx/Rx methods, the next dmaengine_slave_config() calls may
    > randomly perform an incorrect DMA channels setup depending on the
    > stack initial values. Lets fix this by zeroing the config-structures
    > before using them.

    Already in spi/for-next.

    --
    With Best Regards,
    Andy Shevchenko


    \
     
     \ /
      Last update: 2020-05-08 21:21    [W:6.389 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site