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
3dec6fcf
Commit
3dec6fcf
authored
Sep 15, 2009
by
Stephen Rothwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit 'irda/for-next'
parents
55b27bf6
1d71d682
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
drivers/net/irda/irda-usb.c
drivers/net/irda/irda-usb.c
+5
-4
No files found.
drivers/net/irda/irda-usb.c
View file @
3dec6fcf
...
@@ -1124,11 +1124,12 @@ static int stir421x_patch_device(struct irda_usb_cb *self)
...
@@ -1124,11 +1124,12 @@ static int stir421x_patch_device(struct irda_usb_cb *self)
* The actual image starts after the "STMP" keyword
* The actual image starts after the "STMP" keyword
* so forward to the firmware header tag
* so forward to the firmware header tag
*/
*/
for
(
i
=
0
;
(
fw
->
data
[
i
]
!=
STIR421X_PATCH_END_OF_HDR_TAG
)
for
(
i
=
0
;
i
<
fw
->
size
&&
fw
->
data
[
i
]
!=
&&
(
i
<
fw
->
size
);
i
++
)
;
STIR421X_PATCH_END_OF_HDR_TAG
;
i
++
)
;
/* here we check for the out of buffer case */
/* here we check for the out of buffer case */
if
(
(
STIR421X_PATCH_END_OF_HDR_TAG
==
fw
->
data
[
i
])
if
(
i
<
STIR421X_PATCH_CODE_OFFSET
&&
i
<
fw
->
size
&&
&&
(
i
<
STIR421X_PATCH_CODE_OFFSET
)
)
{
STIR421X_PATCH_END_OF_HDR_TAG
==
fw
->
data
[
i
]
)
{
if
(
!
memcmp
(
fw
->
data
+
i
+
1
,
STIR421X_PATCH_STMP_TAG
,
if
(
!
memcmp
(
fw
->
data
+
i
+
1
,
STIR421X_PATCH_STMP_TAG
,
sizeof
(
STIR421X_PATCH_STMP_TAG
)
-
1
))
{
sizeof
(
STIR421X_PATCH_STMP_TAG
)
-
1
))
{
...
...
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