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
c26332f5
Commit
c26332f5
authored
Jan 25, 2003
by
James Bottomley
Committed by
James Bottomley
Jan 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI] make echo scsi add-single-device x x x x > /proc/scsi/scsi work again
Correct the logic error making it fail
parent
7cfdf2cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_scan.c
+1
-1
No files found.
drivers/scsi/scsi_scan.c
View file @
c26332f5
...
@@ -1758,7 +1758,7 @@ int scsi_add_single_device(uint host, uint channel, uint id, uint lun)
...
@@ -1758,7 +1758,7 @@ int scsi_add_single_device(uint host, uint channel, uint id, uint lun)
shost
=
scsi_host_hn_get
(
host
);
shost
=
scsi_host_hn_get
(
host
);
if
(
!
shost
)
if
(
!
shost
)
return
-
ENODEV
;
return
-
ENODEV
;
if
(
scsi_find_device
(
shost
,
channel
,
id
,
lun
)
!
=
NULL
)
if
(
scsi_find_device
(
shost
,
channel
,
id
,
lun
)
=
=
NULL
)
goto
out
;
goto
out
;
if
(
scsi_probe_and_add_lun
(
shost
,
NULL
,
channel
,
id
,
lun
,
NULL
)
==
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