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
7d582abf
Commit
7d582abf
authored
Nov 23, 2007
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import 2.1.133pre1
parent
09b9d40a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
Makefile
Makefile
+1
-1
arch/i386/kernel/irq.c
arch/i386/kernel/irq.c
+1
-1
net/wanrouter/wanmain.c
net/wanrouter/wanmain.c
+6
-3
No files found.
Makefile
View file @
7d582abf
VERSION
=
2
PATCHLEVEL
=
1
SUBLEVEL
=
13
2
SUBLEVEL
=
13
3
ARCH
:=
$(
shell
uname
-m
|
sed
-e
s/i.86/i386/
-e
s/sun4u/sparc64/
-e
s/arm.
*
/arm/
-e
s/sa110/arm/
)
...
...
arch/i386/kernel/irq.c
View file @
7d582abf
...
...
@@ -709,7 +709,7 @@ void enable_irq(unsigned int irq)
spin_lock_irqsave
(
&
irq_controller_lock
,
flags
);
switch
(
irq_desc
[
irq
].
depth
)
{
case
1
:
irq_desc
[
irq
].
status
&=
~
IRQ_DISABLED
;
irq_desc
[
irq
].
status
&=
~
(
IRQ_DISABLED
|
IRQ_INPROGRESS
)
;
irq_desc
[
irq
].
handler
->
enable
(
irq
);
/* fall throught */
default:
...
...
net/wanrouter/wanmain.c
View file @
7d582abf
...
...
@@ -27,6 +27,9 @@
* May 17, 1998 K. Baranowski Fixed SNAP encapsulation in wan_encapsulate
* Dec 15, 1998 Arnaldo Melo support for firmwares of up to 128000 bytes
* check wandev->setup return value
* Dec 22, 1998 Arnaldo Melo vmalloc/vfree used in device_setup to allocate
* kernel memory and copy configuration data to
* kernel space (for big firmwares)
*****************************************************************************/
#include <linux/stddef.h>
/* offsetof(), etc. */
...
...
@@ -34,6 +37,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
/* support for loadable modules */
#include <linux/malloc.h>
/* kmalloc(), kfree() */
#include <linux/vmalloc.h>
/* vmalloc(), vfree() */
#include <linux/mm.h>
/* verify_area(), etc. */
#include <linux/string.h>
/* inline mem*, str* functions */
#include <asm/segment.h>
/* kernel <-> user copy */
...
...
@@ -464,7 +468,7 @@ static int device_setup (wan_device_t* wandev, wandev_conf_t* u_conf)
if
(
conf
->
data_size
>
128000
||
conf
->
data_size
<
0
){
goto
bail
;
}
data
=
kmalloc
(
conf
->
data_size
,
GFP_KERNEL
);
data
=
vmalloc
(
conf
->
data_size
);
if
(
data
)
{
if
(
!
copy_from_user
(
data
,
conf
->
data
,
conf
->
data_size
))
...
...
@@ -474,9 +478,8 @@ static int device_setup (wan_device_t* wandev, wandev_conf_t* u_conf)
}
else
err
=
-
ENOBUFS
;
vfree
(
data
);
}
if
(
data
)
kfree
(
data
);
}
bail:
kfree
(
conf
);
...
...
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