Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
b873e1a3
Commit
b873e1a3
authored
Nov 05, 2007
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4L/DVB (6559): Fix a buffer overflow at xc2028_get_reg
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@infradead.org
>
parent
e7a2bc8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/media/video/tuner-xc2028.c
drivers/media/video/tuner-xc2028.c
+2
-2
No files found.
drivers/media/video/tuner-xc2028.c
View file @
b873e1a3
...
@@ -94,13 +94,13 @@ struct xc2028_data {
...
@@ -94,13 +94,13 @@ struct xc2028_data {
static
int
xc2028_get_reg
(
struct
xc2028_data
*
priv
,
u16
reg
)
static
int
xc2028_get_reg
(
struct
xc2028_data
*
priv
,
u16
reg
)
{
{
int
rc
;
int
rc
;
unsigned
char
buf
[
1
];
unsigned
char
buf
[
2
];
tuner_info
(
"%s called
\n
"
,
__FUNCTION__
);
tuner_info
(
"%s called
\n
"
,
__FUNCTION__
);
buf
[
0
]
=
reg
;
buf
[
0
]
=
reg
;
i2c_send
(
rc
,
priv
,
buf
,
sizeof
(
buf
)
);
i2c_send
(
rc
,
priv
,
buf
,
1
);
if
(
rc
<
0
)
if
(
rc
<
0
)
return
rc
;
return
rc
;
...
...
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