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
nexedi
linux
Commits
b0cf4f6d
Commit
b0cf4f6d
authored
Jan 29, 2003
by
Douglas Gilbert
Committed by
James Bottomley
Jan 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI] Add length checking to sprintf in sg
parent
b06ab129
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/scsi/sg.c
drivers/scsi/sg.c
+3
-3
No files found.
drivers/scsi/sg.c
View file @
b0cf4f6d
...
...
@@ -19,7 +19,7 @@
*/
#include <linux/config.h>
#ifdef CONFIG_PROC_FS
static
char
*
sg_version_str
=
"Version: 3.5.27 (200
20812
)"
;
static
char
*
sg_version_str
=
"Version: 3.5.27 (200
30130
)"
;
#endif
static
int
sg_version_num
=
30527
;
/* 2 digits for each component */
/*
...
...
@@ -1455,9 +1455,9 @@ sg_attach(Scsi_Device * scsidp)
sdp
->
sg_tablesize
=
scsidp
->
host
?
scsidp
->
host
->
sg_tablesize
:
0
;
memset
(
&
sdp
->
sg_driverfs_dev
,
0
,
sizeof
(
struct
device
));
s
printf
(
sdp
->
sg_driverfs_dev
.
bus_id
,
"%s:gen"
,
s
nprintf
(
sdp
->
sg_driverfs_dev
.
bus_id
,
BUS_ID_SIZE
,
"%s:gen"
,
scsidp
->
sdev_driverfs_dev
.
bus_id
);
s
printf
(
sdp
->
sg_driverfs_dev
.
name
,
"%sgeneric"
,
s
nprintf
(
sdp
->
sg_driverfs_dev
.
name
,
DEVICE_NAME_SIZE
,
"%sgeneric"
,
scsidp
->
sdev_driverfs_dev
.
name
);
sdp
->
sg_driverfs_dev
.
parent
=
&
scsidp
->
sdev_driverfs_dev
;
sdp
->
sg_driverfs_dev
.
bus
=
scsidp
->
sdev_driverfs_dev
.
bus
;
...
...
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