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
27ddb3e8
Commit
27ddb3e8
authored
Mar 26, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix up 3w-xxxx driver
Fix up 3w-xxxx. I didnt test SMP and it shows
parent
1a76fede
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/scsi/3w-xxxx.c
drivers/scsi/3w-xxxx.c
+2
-2
No files found.
drivers/scsi/3w-xxxx.c
View file @
27ddb3e8
...
@@ -677,7 +677,7 @@ static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int
...
@@ -677,7 +677,7 @@ static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int
dprintk
(
KERN_WARNING
"3w-xxxx: tw_chrdev_ioctl(): caught TW_AEN_LISTEN.
\n
"
);
dprintk
(
KERN_WARNING
"3w-xxxx: tw_chrdev_ioctl(): caught TW_AEN_LISTEN.
\n
"
);
memset
(
tw_ioctl
->
data_buffer
,
0
,
tw_ioctl
->
data_buffer_length
);
memset
(
tw_ioctl
->
data_buffer
,
0
,
tw_ioctl
->
data_buffer_length
);
spin_lock_irqsave
(
&
tw_dev
->
host
->
host_lock
,
flags
);
spin_lock_irqsave
(
tw_dev
->
host
->
host_lock
,
flags
);
if
(
tw_dev
->
aen_head
==
tw_dev
->
aen_tail
)
{
if
(
tw_dev
->
aen_head
==
tw_dev
->
aen_tail
)
{
tw_aen_code
=
TW_AEN_QUEUE_EMPTY
;
tw_aen_code
=
TW_AEN_QUEUE_EMPTY
;
}
else
{
}
else
{
...
@@ -688,7 +688,7 @@ static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int
...
@@ -688,7 +688,7 @@ static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int
tw_dev
->
aen_head
=
tw_dev
->
aen_head
+
1
;
tw_dev
->
aen_head
=
tw_dev
->
aen_head
+
1
;
}
}
}
}
spin_unlock_irqrestore
(
&
tw_dev
->
tw
_lock
,
flags
);
spin_unlock_irqrestore
(
tw_dev
->
host
->
host
_lock
,
flags
);
memcpy
(
tw_ioctl
->
data_buffer
,
&
tw_aen_code
,
sizeof
(
tw_aen_code
));
memcpy
(
tw_ioctl
->
data_buffer
,
&
tw_aen_code
,
sizeof
(
tw_aen_code
));
break
;
break
;
case
TW_CMD_PACKET_WITH_DATA
:
case
TW_CMD_PACKET_WITH_DATA
:
...
...
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