commit | cc3c632f0d8790b33645055cc693e54d6df9bb7e | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sun Dec 27 10:26:00 2020 +0100 |
committer | Tom Rini <trini@konsulko.com> | Mon Jan 18 15:23:06 2021 -0500 |
tree | 39741bbaf08f42eb20e30b81f44be02058295864 | |
parent | 1d5955f598f6325ca31fc10dabcc83b1853cac06 [diff] |
dma: bcm6348: incorrect buffer allocation Calling calloc() for 0 members does not make any sense. Setting ch_priv->busy_desc = NULL for ch_priv->desc_cnt > 0 is equally unreasonable. The current code will lead to a NULL dereference in bcm6348_iudma_enable(). The assignments for ch_priv->busy_desc are obviously swapped. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>