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
90af6e35
Commit
90af6e35
authored
Feb 24, 2004
by
Michal Ludvig
Committed by
Patrick McHardy
Feb 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFRM_USER]: Fix SKB sizing in xfrm_send_policy_notify().
parent
e1ef7eb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
net/xfrm/xfrm_user.c
net/xfrm/xfrm_user.c
+1
-1
No files found.
net/xfrm/xfrm_user.c
View file @
90af6e35
...
@@ -1153,7 +1153,7 @@ static int xfrm_send_policy_notify(struct xfrm_policy *xp, int dir, int hard)
...
@@ -1153,7 +1153,7 @@ static int xfrm_send_policy_notify(struct xfrm_policy *xp, int dir, int hard)
len
=
sizeof
(
struct
xfrm_user_tmpl
)
*
xp
->
xfrm_nr
;
len
=
sizeof
(
struct
xfrm_user_tmpl
)
*
xp
->
xfrm_nr
;
len
=
RTA_ALIGN
(
RTA_LENGTH
(
len
));
len
=
RTA_ALIGN
(
RTA_LENGTH
(
len
));
len
+=
NLMSG_ALIGN
(
NLMSG_LENGTH
(
sizeof
(
struct
xfrm_user
policy_info
)));
len
+=
NLMSG_ALIGN
(
NLMSG_LENGTH
(
sizeof
(
struct
xfrm_user
_polexpire
)));
skb
=
alloc_skb
(
len
,
GFP_ATOMIC
);
skb
=
alloc_skb
(
len
,
GFP_ATOMIC
);
if
(
skb
==
NULL
)
if
(
skb
==
NULL
)
return
-
ENOMEM
;
return
-
ENOMEM
;
...
...
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