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
272a411e
Commit
272a411e
authored
Aug 14, 2003
by
Randy Dunlap
Committed by
Linus Torvalds
Aug 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] janitor: scsi/gdth error handling
From: Daniele Bellucci <bellucda@tiscali.it>
parent
d563c54e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
drivers/scsi/gdth.c
drivers/scsi/gdth.c
+9
-3
No files found.
drivers/scsi/gdth.c
View file @
272a411e
...
...
@@ -27,6 +27,9 @@
* Tested with Linux 1.2.13, ..., 2.2.20, ..., 2.4.20 *
* *
* $Log: gdth.c,v $
* Revision 1.63 2003/07/12 14:01:00 Daniele Bellucci <bellucda@tiscali.it>
* Minor cleanups in gdth_ioctl.
*
* Revision 1.62 2003/02/27 15:01:59 achim
* Dynamic DMA mapping implemented
* New (character device) IOCTL interface added
...
...
@@ -5433,14 +5436,16 @@ static int gdth_ioctl(struct inode *inode, struct file *filep,
case
GDTIOCTL_CTRCNT
:
{
int
cnt
=
gdth_ctr_count
;
put_user
(
cnt
,
(
int
*
)
arg
);
if
(
put_user
(
cnt
,
(
int
*
)
arg
))
return
-
EFAULT
;
break
;
}
case
GDTIOCTL_DRVERS
:
{
int
ver
=
(
GDTH_VERSION
<<
8
)
|
GDTH_SUBVERSION
;
put_user
(
ver
,
(
int
*
)
arg
);
if
(
put_user
(
ver
,
(
int
*
)
arg
))
return
-
EFAULT
;
break
;
}
...
...
@@ -5451,7 +5456,8 @@ static int gdth_ioctl(struct inode *inode, struct file *filep,
osv
.
version
=
(
unchar
)(
LINUX_VERSION_CODE
>>
16
);
osv
.
subversion
=
(
unchar
)(
LINUX_VERSION_CODE
>>
8
);
osv
.
revision
=
(
ushort
)(
LINUX_VERSION_CODE
&
0xff
);
copy_to_user
((
char
*
)
arg
,
&
osv
,
sizeof
(
gdth_ioctl_osvers
));
if
(
copy_to_user
((
char
*
)
arg
,
&
osv
,
sizeof
(
gdth_ioctl_osvers
)))
return
-
EFAULT
;
break
;
}
...
...
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