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
nexedi
linux
Commits
535657f5
Commit
535657f5
authored
Oct 10, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Fix register_netdev() return value check in synclink_cs.c
parent
d900a3a6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/char/pcmcia/synclink_cs.c
drivers/char/pcmcia/synclink_cs.c
+1
-1
drivers/char/synclink.c
drivers/char/synclink.c
+1
-1
drivers/char/synclinkmp.c
drivers/char/synclinkmp.c
+1
-1
No files found.
drivers/char/pcmcia/synclink_cs.c
View file @
535657f5
...
@@ -4232,7 +4232,7 @@ void mgslpc_sppp_init(MGSLPC_INFO *info)
...
@@ -4232,7 +4232,7 @@ void mgslpc_sppp_init(MGSLPC_INFO *info)
d
->
tx_timeout
=
mgslpc_sppp_tx_timeout
;
d
->
tx_timeout
=
mgslpc_sppp_tx_timeout
;
d
->
watchdog_timeo
=
10
*
HZ
;
d
->
watchdog_timeo
=
10
*
HZ
;
if
(
register_netdev
(
d
)
==
-
1
)
{
if
(
register_netdev
(
d
))
{
printk
(
KERN_WARNING
"%s: register_netdev failed.
\n
"
,
d
->
name
);
printk
(
KERN_WARNING
"%s: register_netdev failed.
\n
"
,
d
->
name
);
sppp_detach
(
info
->
netdev
);
sppp_detach
(
info
->
netdev
);
return
;
return
;
...
...
drivers/char/synclink.c
View file @
535657f5
...
@@ -7847,7 +7847,7 @@ void mgsl_sppp_init(struct mgsl_struct *info)
...
@@ -7847,7 +7847,7 @@ void mgsl_sppp_init(struct mgsl_struct *info)
d
->
tx_timeout
=
mgsl_sppp_tx_timeout
;
d
->
tx_timeout
=
mgsl_sppp_tx_timeout
;
d
->
watchdog_timeo
=
10
*
HZ
;
d
->
watchdog_timeo
=
10
*
HZ
;
if
(
register_netdev
(
d
)
==
-
1
)
{
if
(
register_netdev
(
d
))
{
printk
(
KERN_WARNING
"%s: register_netdev failed.
\n
"
,
d
->
name
);
printk
(
KERN_WARNING
"%s: register_netdev failed.
\n
"
,
d
->
name
);
sppp_detach
(
info
->
netdev
);
sppp_detach
(
info
->
netdev
);
return
;
return
;
...
...
drivers/char/synclinkmp.c
View file @
535657f5
...
@@ -1653,7 +1653,7 @@ static void sppp_init(SLMP_INFO *info)
...
@@ -1653,7 +1653,7 @@ static void sppp_init(SLMP_INFO *info)
d
->
tx_timeout
=
sppp_cb_tx_timeout
;
d
->
tx_timeout
=
sppp_cb_tx_timeout
;
d
->
watchdog_timeo
=
10
*
HZ
;
d
->
watchdog_timeo
=
10
*
HZ
;
if
(
register_netdev
(
d
)
==
-
1
)
{
if
(
register_netdev
(
d
))
{
printk
(
KERN_WARNING
"%s: register_netdev failed.
\n
"
,
d
->
name
);
printk
(
KERN_WARNING
"%s: register_netdev failed.
\n
"
,
d
->
name
);
sppp_detach
(
info
->
netdev
);
sppp_detach
(
info
->
netdev
);
return
;
return
;
...
...
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