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
Kirill Smelkov
linux
Commits
b06ab129
Commit
b06ab129
authored
Jan 26, 2003
by
Mike Anderson
Committed by
James Bottomley
Jan 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI] fix scsi_find_device()
parent
c26332f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/scsi/hosts.h
drivers/scsi/hosts.h
+2
-2
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_scan.c
+1
-1
No files found.
drivers/scsi/hosts.h
View file @
b06ab129
...
...
@@ -605,8 +605,8 @@ static inline Scsi_Device *scsi_find_device(struct Scsi_Host *shost,
list_for_each_entry
(
sdev
,
&
shost
->
my_devices
,
siblings
)
if
(
sdev
->
channel
==
channel
&&
sdev
->
id
==
pun
&&
sdev
->
lun
==
lun
)
break
;
return
sdev
;
return
sdev
;
return
NULL
;
}
/*
...
...
drivers/scsi/scsi_scan.c
View file @
b06ab129
...
...
@@ -1758,7 +1758,7 @@ int scsi_add_single_device(uint host, uint channel, uint id, uint lun)
shost
=
scsi_host_hn_get
(
host
);
if
(
!
shost
)
return
-
ENODEV
;
if
(
scsi_find_device
(
shost
,
channel
,
id
,
lun
)
=
=
NULL
)
if
(
scsi_find_device
(
shost
,
channel
,
id
,
lun
)
!
=
NULL
)
goto
out
;
if
(
scsi_probe_and_add_lun
(
shost
,
NULL
,
channel
,
id
,
lun
,
NULL
)
==
...
...
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