Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144419629
D43105.id131557.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
837 B
Referenced Files
None
Subscribers
None
D43105.id131557.diff
View Options
diff --git a/sys/powerpc/powerpc/exec_machdep.c b/sys/powerpc/powerpc/exec_machdep.c
--- a/sys/powerpc/powerpc/exec_machdep.c
+++ b/sys/powerpc/powerpc/exec_machdep.c
@@ -1155,6 +1155,7 @@
{
struct trapframe *tf;
uintptr_t sp;
+ int error;
tf = td->td_frame;
/* align stack and alloc space for frame ptr and saved LR */
@@ -1182,10 +1183,12 @@
tf->srr0 = (register_t)entry;
/* ELFv2 ABI requires that the global entry point be in r12. */
tf->fixreg[12] = (register_t)entry;
- }
- else {
+ } else {
register_t entry_desc[3];
- (void)copyin((void *)entry, entry_desc, sizeof(entry_desc));
+ error = copyin((void *)entry, entry_desc,
+ sizeof(entry_desc));
+ if (error != 0)
+ return (error);
tf->srr0 = entry_desc[0];
tf->fixreg[2] = entry_desc[1];
tf->fixreg[11] = entry_desc[2];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 8:33 AM (8 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28558948
Default Alt Text
D43105.id131557.diff (837 B)
Attached To
Mode
D43105: powerpc: Avoid ignoring copyin()'s return value
Attached
Detach File
Event Timeline
Log In to Comment