staging: mt7621-dma: fix potentially dereferencing uninitialized 'tx_desc'
commit 354e379684fcc70ab8d5450b4d57bd92b5294dfd upstream. Function 'mtk_hsdma_start_transfer' uses 'tx_desc' pointer which can be dereferenced before it is initializated. Initializate pointer before avoiding the problem. Fixes: 0853c7a5 ("staging: mt7621-dma: ralink: add rt2880 dma engine") Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NSergio Paracuellos <sergio.paracuellos@gmail.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录