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
525e0bcf
Commit
525e0bcf
authored
Jan 10, 2004
by
Alexander Viro
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr lasi_82596] remove ether_setup() call, fix leak in probe
parent
085d4871
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
drivers/net/lasi_82596.c
drivers/net/lasi_82596.c
+11
-6
No files found.
drivers/net/lasi_82596.c
View file @
525e0bcf
...
...
@@ -1149,12 +1149,11 @@ static void print_eth(unsigned char *add, char *str)
#define LAN_PROM_ADDR 0xF0810000
static
int
__devinit
i82596_probe
(
struct
net_device
*
dev
)
static
int
__devinit
i82596_probe
(
struct
net_device
*
dev
,
struct
device
*
gen_dev
)
{
int
i
;
struct
i596_private
*
lp
;
/* we're going to overwrite dev->priv, so pull the device out */
struct
device
*
gen_dev
=
dev
->
priv
;
char
eth_addr
[
6
];
dma_addr_t
dma_addr
;
...
...
@@ -1204,7 +1203,6 @@ static int __devinit i82596_probe(struct net_device *dev)
return
-
ENOMEM
;
}
ether_setup
(
dev
);
DEB
(
DEB_PROBE
,
printk
(
"%s: 82596 at %#3lx,"
,
dev
->
name
,
dev
->
base_addr
));
for
(
i
=
0
;
i
<
6
;
i
++
)
...
...
@@ -1537,12 +1535,19 @@ lan_init_chip(struct parisc_device *dev)
netdevice
->
base_addr
=
dev
->
hpa
;
netdevice
->
irq
=
dev
->
irq
;
netdevice
->
init
=
i82596_probe
;
netdevice
->
priv
=
&
dev
->
dev
;
retval
=
i82596_probe
(
netdevice
,
&
dev
->
dev
);
if
(
retval
)
{
free_netdev
(
netdevice
);
return
-
ENODEV
;
}
retval
=
register_netdev
(
netdevice
);
if
(
retval
)
{
struct
i596_private
*
lp
=
netdevice
->
priv
;
printk
(
KERN_WARNING
__FILE__
": register_netdevice ret'd %d
\n
"
,
retval
);
dma_free_noncoherent
(
lp
->
dev
,
sizeof
(
struct
i596_private
),
(
void
*
)
netdevice
->
mem_start
,
lp
->
dma_addr
);
free_netdev
(
netdevice
);
return
-
ENODEV
;
};
...
...
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