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
2adafe55
Commit
2adafe55
authored
Jul 18, 2002
by
Eric Brower
Committed by
David S. Miller
Jul 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SK98LIN: Fix oops in procfs handling if no cards probed.
parent
8549ccb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
drivers/net/sk98lin/skge.c
drivers/net/sk98lin/skge.c
+9
-5
No files found.
drivers/net/sk98lin/skge.c
View file @
2adafe55
...
...
@@ -404,6 +404,7 @@ void proc_fill_inode(struct inode *inode, int fill)
*/
static
int
__init
skge_probe
(
void
)
{
int
proc_root_initialized
=
0
;
int
boards_found
=
0
;
int
version_disp
=
0
;
SK_AC
*
pAC
;
...
...
@@ -429,11 +430,6 @@ static int __init skge_probe (void)
if
(
!
pci_present
())
/* is PCI support present? */
return
-
ENODEV
;
pSkRootDir
=
create_proc_entry
(
"sk98lin"
,
S_IFDIR
|
S_IWUSR
|
S_IRUGO
|
S_IXUGO
,
proc_net
);
pSkRootDir
->
owner
=
THIS_MODULE
;
while
((
pdev
=
pci_find_device
(
PCI_VENDOR_ID_SYSKONNECT
,
PCI_DEVICE_ID_SYSKONNECT_GE
,
pdev
))
!=
NULL
)
{
...
...
@@ -485,6 +481,14 @@ static int __init skge_probe (void)
dev
->
do_ioctl
=
&
SkGeIoctl
;
dev
->
change_mtu
=
&
SkGeChangeMtu
;
if
(
!
proc_root_initialized
)
{
pSkRootDir
=
create_proc_entry
(
"sk98lin"
,
S_IFDIR
|
S_IWUSR
|
S_IRUGO
|
S_IXUGO
,
proc_net
);
pSkRootDir
->
owner
=
THIS_MODULE
;
proc_root_initialized
=
1
;
}
pProcFile
=
create_proc_entry
(
dev
->
name
,
S_IFREG
|
0444
,
pSkRootDir
);
pProcFile
->
read_proc
=
proc_read
;
...
...
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