Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
8e8a52ed
Commit
8e8a52ed
authored
May 31, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] SMTC: Don't continue in set_vi_srs_handler on detected bad arguments.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
ef36fc3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
arch/mips/kernel/traps.c
arch/mips/kernel/traps.c
+3
-2
No files found.
arch/mips/kernel/traps.c
View file @
8e8a52ed
...
...
@@ -11,6 +11,7 @@
* Copyright (C) 2000, 01 MIPS Technologies, Inc.
* Copyright (C) 2002, 2003, 2004, 2005 Maciej W. Rozycki
*/
#include <linux/bug.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/module.h>
...
...
@@ -1190,8 +1191,8 @@ static void *set_vi_srs_handler(int n, vi_handler_t addr, int srs)
memcpy
(
b
,
&
except_vec_vi
,
handler_len
);
#ifdef CONFIG_MIPS_MT_SMTC
if
(
n
>
7
)
printk
(
"Vector index %d exceeds SMTC maximum
\n
"
,
n
);
BUG_ON
(
n
>
7
);
/* Vector index %d exceeds SMTC maximum. */
w
=
(
u32
*
)(
b
+
mori_offset
);
*
w
=
(
*
w
&
0xffff0000
)
|
(
0x100
<<
n
);
#endif
/* CONFIG_MIPS_MT_SMTC */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment