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
e355f8bc
Commit
e355f8bc
authored
Aug 25, 2003
by
Jamie Lenehan
Committed by
Christoph Hellwig
Aug 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] dc395x [5/6] - check for device
After searching for a device to free, only free it if it was found.
parent
181bb5ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
drivers/scsi/dc395x.c
drivers/scsi/dc395x.c
+2
-1
No files found.
drivers/scsi/dc395x.c
View file @
e355f8bc
...
@@ -4833,7 +4833,8 @@ void dc395x_slave_destroy(struct scsi_device *scsi_device)
...
@@ -4833,7 +4833,8 @@ void dc395x_slave_destroy(struct scsi_device *scsi_device)
{
{
struct
AdapterCtlBlk
*
acb
=
(
struct
AdapterCtlBlk
*
)
scsi_device
->
host
->
hostdata
;
struct
AdapterCtlBlk
*
acb
=
(
struct
AdapterCtlBlk
*
)
scsi_device
->
host
->
hostdata
;
struct
DeviceCtlBlk
*
dcb
=
find_dcb
(
acb
,
scsi_device
->
id
,
scsi_device
->
lun
);
struct
DeviceCtlBlk
*
dcb
=
find_dcb
(
acb
,
scsi_device
->
id
,
scsi_device
->
lun
);
adapter_remove_and_free_device
(
acb
,
dcb
);
if
(
dcb
)
adapter_remove_and_free_device
(
acb
,
dcb
);
}
}
...
...
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