diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-21 01:45:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-21 01:45:08 +0000 |
commit | a774c58708c599daef71e7a30cf83bb2a342a51c (patch) | |
tree | e54c4d222a1e4f23340fea1cf3b9bb92b9f2257e /nuttx | |
parent | 7e1a5210b304ebf1617f1d49e33bff469c7a9ace (diff) | |
download | px4-nuttx-a774c58708c599daef71e7a30cf83bb2a342a51c.tar.gz px4-nuttx-a774c58708c599daef71e7a30cf83bb2a342a51c.tar.bz2 px4-nuttx-a774c58708c599daef71e7a30cf83bb2a342a51c.zip |
backward comparison
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3205 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c index 02ed7b4ca..c8be22fad 100755 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbhost.c @@ -1369,8 +1369,8 @@ static int lpc17_transfer(FAR struct usbhost_driver_s *drvr, /* Allocate an IO buffer if the user buffer does not lie in AHB SRAM */ #ifdef CONFIG_UBHOST_AHBIOBUFFERS - if ((uintptr_t)buffer >= LPC17_SRAM_BANK0 && - (uintptr_t)buffer < (LPC17_SRAM_BANK0 + LPC17_SRAM_BANK0 + LPC17_SRAM_BANK0)) + if ((uintptr_t)buffer < LPC17_SRAM_BANK0 || + (uintptr_t)buffer >= (LPC17_SRAM_BANK0 + LPC17_SRAM_BANK0 + LPC17_SRAM_BANK0)) { /* Allocate an IO buffer in AHB SRAM */ |