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
190efe3f
Commit
190efe3f
authored
Mar 23, 2003
by
Alan Cox
Committed by
Linus Torvalds
Mar 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] 3ware fixups from Adam Radford
parent
901a68b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/scsi/3w-xxxx.c
drivers/scsi/3w-xxxx.c
+4
-3
No files found.
drivers/scsi/3w-xxxx.c
View file @
190efe3f
...
...
@@ -622,7 +622,7 @@ static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int
int
error
,
request_id
;
dma_addr_t
dma_handle
;
unsigned
short
tw_aen_code
;
unsigned
long
before
,
timeout
;
unsigned
long
before
;
unsigned
long
flags
;
unsigned
int
data_buffer_length
=
0
;
unsigned
long
data_buffer_length_adjusted
=
0
;
...
...
@@ -635,7 +635,8 @@ static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int
dprintk
(
KERN_WARNING
"3w-xxxx: tw_chrdev_ioctl()
\n
"
);
/* Only let one of these through at a time */
down
(
&
tw_dev
->
ioctl_sem
);
if
(
down_interruptible
(
&
tw_dev
->
ioctl_sem
))
return
-
EINTR
;
/* First copy down the buffer length */
error
=
copy_from_user
(
&
data_buffer_length
,
(
void
*
)
arg
,
sizeof
(
unsigned
int
));
...
...
@@ -654,7 +655,7 @@ static int tw_chrdev_ioctl(struct inode *inode, struct file *file, unsigned int
/* Now allocate ioctl buf memory */
cpu_addr
=
pci_alloc_consistent
(
tw_dev
->
tw_pci_dev
,
data_buffer_length_adjusted
+
sizeof
(
TW_New_Ioctl
)
-
1
,
&
dma_handle
);
if
(
cpu_addr
==
NULL
)
{
retval
-
ENOMEM
;
retval
=
-
ENOMEM
;
goto
out
;
}
...
...
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