Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1282999 > unrolled thread

[PATCH 14/17] ARC: dw2 unwind: No need for __get_user

Started byVineet Gupta <Vineet.Gupta1@synopsys.com>
First post2015-12-03 13:50 +0100
Last post2015-12-03 13:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 14/17] ARC: dw2 unwind: No need for __get_user Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2015-12-03 13:50 +0100

#1282999 — [PATCH 14/17] ARC: dw2 unwind: No need for __get_user

FromVineet Gupta <Vineet.Gupta1@synopsys.com>
Date2015-12-03 13:50 +0100
Subject[PATCH 14/17] ARC: dw2 unwind: No need for __get_user
Message-ID<qBBuG-53y-13@gated-at.bofh.it>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
 arch/arc/kernel/unwind.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c
index b2053b55d076..4f739716f908 100644
--- a/arch/arc/kernel/unwind.c
+++ b/arch/arc/kernel/unwind.c
@@ -1056,7 +1056,7 @@ int arc_unwind(struct unwind_frame_info *frame)
 			    || addr + sizeof(unsigned long) > endLoc)
 					return -EIO;
 
-			__get_user(FRAME_REG(i, unsigned long), (unsigned long __user *)addr);
+			FRAME_REG(i, unsigned long) = *(unsigned long *)addr;
 			break;
 		}
 		unw_debug("r%d: 0x%lx\n", i, *fptr);
-- 
1.9.1

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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web