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
c3b26786
Commit
c3b26786
authored
Aug 04, 2002
by
Marcus Alanen
Committed by
Linus Torvalds
Aug 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly free resources in old-OSS esssolo1 sound driver
parent
c77fde96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sound/oss/esssolo1.c
sound/oss/esssolo1.c
+6
-6
No files found.
sound/oss/esssolo1.c
View file @
c3b26786
...
@@ -2384,9 +2384,9 @@ static int __devinit solo1_probe(struct pci_dev *pcidev, const struct pci_device
...
@@ -2384,9 +2384,9 @@ static int __devinit solo1_probe(struct pci_dev *pcidev, const struct pci_device
return
0
;
return
0
;
err:
err:
unregister_sound_
dsp
(
s
->
dev_dmfm
);
unregister_sound_
special
(
s
->
dev_dmfm
);
err_dev4:
err_dev4:
unregister_sound_
dsp
(
s
->
dev_midi
);
unregister_sound_
midi
(
s
->
dev_midi
);
err_dev3:
err_dev3:
unregister_sound_mixer
(
s
->
dev_mixer
);
unregister_sound_mixer
(
s
->
dev_mixer
);
err_dev2:
err_dev2:
...
@@ -2397,13 +2397,13 @@ static int __devinit solo1_probe(struct pci_dev *pcidev, const struct pci_device
...
@@ -2397,13 +2397,13 @@ static int __devinit solo1_probe(struct pci_dev *pcidev, const struct pci_device
err_irq:
err_irq:
if
(
s
->
gameport
.
io
)
if
(
s
->
gameport
.
io
)
release_region
(
s
->
gameport
.
io
,
GAMEPORT_EXTENT
);
release_region
(
s
->
gameport
.
io
,
GAMEPORT_EXTENT
);
release_region
(
s
->
iobase
,
IO
BASE_EXTENT
);
release_region
(
s
->
mpubase
,
MPU
BASE_EXTENT
);
err_region4:
err_region4:
release_region
(
s
->
sbbase
+
FMSYNTH_EXTENT
,
SBBASE_EXTENT
-
FMSYNTH_EXTENT
);
err_region3:
release_region
(
s
->
ddmabase
,
DDMABASE_EXTENT
);
release_region
(
s
->
ddmabase
,
DDMABASE_EXTENT
);
err_region3:
release_region
(
s
->
sbbase
+
FMSYNTH_EXTENT
,
SBBASE_EXTENT
-
FMSYNTH_EXTENT
);
err_region2:
err_region2:
release_region
(
s
->
mpubase
,
MPU
BASE_EXTENT
);
release_region
(
s
->
iobase
,
IO
BASE_EXTENT
);
err_region1:
err_region1:
kfree
(
s
);
kfree
(
s
);
return
ret
;
return
ret
;
...
...
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