lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri,  4 Jul 2014 12:46:55 -0400
From:	Nicholas Krause <xerofoify@...il.com>
To:	takata@...ux-m32r.org
Cc:	linux-m32r@...linux-m32r.org, linux-m32r-ja@...linux-m32r.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] m32r: subtract textlen instead of adding in function m32r_flat_get_addr_from_rp

This patch fixes the message stating in this function to substract textlen for return
value of case FLAT_M32R_LO16_DATA in the switch statement for this function.

Signed-off-by: Nicholas Krause <xerofoify@...il.com>
---
 arch/m32r/include/asm/flat.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/m32r/include/asm/flat.h b/arch/m32r/include/asm/flat.h
index 5d711c4..12ac950 100644
--- a/arch/m32r/include/asm/flat.h
+++ b/arch/m32r/include/asm/flat.h
@@ -83,10 +83,8 @@ static inline unsigned long m32r_flat_get_addr_from_rp (unsigned long *rp,
 		case FLAT_M32R_LO16:
 			return htonl(*rp) & 0xFFFF;
 		case FLAT_M32R_LO16_DATA:
-                        /* FIXME: The return value will decrease by textlen
-			   at m32r_flat_put_addr_at_rp () */
 			textlen_for_m32r_lo16_data = textlen;
-			return (htonl(*rp) & 0xFFFF) + textlen;
+			return (htonl(*rp) & 0xFFFF) - textlen;
 		case FLAT_M32R_16:
 			return htons(*(unsigned short *)rp) & 0xFFFF;
 		case FLAT_M32R_24:
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ