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
a1699d96
Commit
a1699d96
authored
Apr 30, 2002
by
William Stinson
Committed by
Jeff Garzik
Apr 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
request_region janitor updates for BusLogic SCSI driver.
parent
eb0b7bb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
drivers/scsi/BusLogic.c
drivers/scsi/BusLogic.c
+16
-7
No files found.
drivers/scsi/BusLogic.c
View file @
a1699d96
...
...
@@ -2792,8 +2792,8 @@ int BusLogic_DetectHostAdapter(SCSI_Host_Template_T *HostTemplate)
released, thereby preventing it from being incorrectly identified as
any other type of Host Adapter.
*/
request_region
(
HostAdapter
->
IO_Address
,
HostAdapter
->
AddressCount
,
"BusLogic"
);
if
(
!
request_region
(
HostAdapter
->
IO_Address
,
HostAdapter
->
AddressCount
,
"BusLogic"
)
)
continue
;
/*
Register the SCSI Host structure.
*/
...
...
@@ -2834,12 +2834,21 @@ int BusLogic_DetectHostAdapter(SCSI_Host_Template_T *HostTemplate)
*/
release_region
(
HostAdapter
->
IO_Address
,
HostAdapter
->
AddressCount
);
request_region
(
HostAdapter
->
IO_Address
,
if
(
!
request_region
(
HostAdapter
->
IO_Address
,
HostAdapter
->
AddressCount
,
HostAdapter
->
FullModelName
);
HostAdapter
->
FullModelName
))
{
printk
(
KERN_WARNING
"BusLogic: Release and re-register of "
"port 0x%04lx failed
\n
"
,
HostAdapter
->
IO_Address
);
BusLogic_DestroyCCBs
(
HostAdapter
);
BusLogic_ReleaseResources
(
HostAdapter
);
BusLogic_UnregisterHostAdapter
(
HostAdapter
);
scsi_unregister
(
Host
);
}
else
{
BusLogic_InitializeHostStructure
(
HostAdapter
,
Host
);
BusLogicHostAdapterCount
++
;
}
}
else
{
/*
...
...
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