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
b5ac4f2c
Commit
b5ac4f2c
authored
Aug 18, 2004
by
Andrew Chew
Committed by
Jeff Garzik
Aug 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[libata sata_nv] fix leak on error
Spotted by Francois Romieu.
parent
d0ecdda0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
drivers/scsi/sata_nv.c
drivers/scsi/sata_nv.c
+6
-2
No files found.
drivers/scsi/sata_nv.c
View file @
b5ac4f2c
...
...
@@ -372,7 +372,7 @@ static int nv_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
probe_ent
->
mmio_base
=
ioremap
(
pci_resource_start
(
pdev
,
5
),
pci_resource_len
(
pdev
,
5
));
if
(
probe_ent
->
mmio_base
==
NULL
)
goto
err_out_
free_ent
;
goto
err_out_
iounmap
;
base
=
(
unsigned
long
)
probe_ent
->
mmio_base
;
...
...
@@ -396,12 +396,16 @@ static int nv_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
rc
=
ata_device_add
(
probe_ent
);
if
(
rc
!=
NV_PORTS
)
goto
err_out_
free_ent
;
goto
err_out_
iounmap
;
kfree
(
probe_ent
);
return
0
;
err_out_iounmap:
if
(
host
->
host_desc
->
host_flags
&
NV_HOST_FLAGS_SCR_MMIO
)
iounmap
(
probe_ent
->
mmio_base
);
err_out_free_ent:
kfree
(
probe_ent
);
...
...
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