Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151023918
D21988.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
695 B
Referenced Files
None
Subscribers
None
D21988.id.diff
View Options
Index: head/sys/contrib/ncsw/user/env/xx.c
===================================================================
--- head/sys/contrib/ncsw/user/env/xx.c
+++ head/sys/contrib/ncsw/user/env/xx.c
@@ -288,16 +288,10 @@
{
int cpu, type;
/* Check interrupt numbers of all available portals */
- for (cpu = 0, type = 0; XX_PInfo.portal_intr[type][cpu] != 0; cpu++) {
- if (irq == XX_PInfo.portal_intr[type][cpu]) {
- /* Found it! */
- return (1);
- }
- if (XX_PInfo.portal_intr[type][cpu + 1] == 0) {
- type++;
- cpu = 0;
- }
- }
+ for (type = 0; type < 2; type++)
+ for (cpu = 0; cpu < MAXCPU; cpu++)
+ if (irq == XX_PInfo.portal_intr[type][cpu])
+ return (1);
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 12:42 PM (19 m, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30969385
Default Alt Text
D21988.id.diff (695 B)
Attached To
Mode
D21988: [PowerPC] [BookE] Fix read past end of struct
Attached
Detach File
Event Timeline
Log In to Comment