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
330edb5e
Commit
330edb5e
authored
Oct 27, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LLC]: Fix array indexing in llc_add_pack().
parent
a1e10d3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/llc/llc_input.c
net/llc/llc_input.c
+2
-2
No files found.
net/llc/llc_input.c
View file @
330edb5e
...
@@ -40,13 +40,13 @@ void llc_add_pack(int type, void (*handler)(struct llc_sap *sap,
...
@@ -40,13 +40,13 @@ void llc_add_pack(int type, void (*handler)(struct llc_sap *sap,
struct
sk_buff
*
skb
))
struct
sk_buff
*
skb
))
{
{
if
(
type
==
LLC_DEST_SAP
||
type
==
LLC_DEST_CONN
)
if
(
type
==
LLC_DEST_SAP
||
type
==
LLC_DEST_CONN
)
llc_type_handlers
[
type
]
=
handler
;
llc_type_handlers
[
type
-
1
]
=
handler
;
}
}
void
llc_remove_pack
(
int
type
)
void
llc_remove_pack
(
int
type
)
{
{
if
(
type
==
LLC_DEST_SAP
||
type
==
LLC_DEST_CONN
)
if
(
type
==
LLC_DEST_SAP
||
type
==
LLC_DEST_CONN
)
llc_type_handlers
[
type
]
=
NULL
;
llc_type_handlers
[
type
-
1
]
=
NULL
;
}
}
void
llc_set_station_handler
(
void
(
*
handler
)(
struct
sk_buff
*
skb
))
void
llc_set_station_handler
(
void
(
*
handler
)(
struct
sk_buff
*
skb
))
...
...
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