MIPS: Read buffer overflow
PATCH 1/1 MIPS: Read buffer overflow
Check whether index is within bounds before testing the element.
Signed-off-by Roel Kluin <[email protected]>
---
arch/mips/jazz/jazzdma.c +1 -1
@@ -190,7 +190,7 @@ int vdma_free(unsigned long laddr)return -1 ; } -while (pgtbl[i].owner == laddr && i <VDMA_PGTBL_ENTRIES ) { +while (i <VDMA_PGTBL_ENTRIES && pgtbl[i].owner == laddr) { pgtbl[i].owner =VDMA_PAGE_EMPTY ; i++; }
Ralf Baechle
AppliedOn Fri, Jul 31, 2009 at 02:52:51PM +0200, Roel Kluin wrote:
Thanks, applied!
Ralf