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
3456b221
Commit
3456b221
authored
Jan 28, 2009
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solos: Fix under-allocation of skb size for get/set parameters
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
af780656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/atm/solos-pci.c
drivers/atm/solos-pci.c
+2
-2
No files found.
drivers/atm/solos-pci.c
View file @
3456b221
...
...
@@ -159,7 +159,7 @@ static ssize_t solos_param_show(struct device *dev, struct device_attribute *att
buflen
=
strlen
(
attr
->
attr
.
name
)
+
10
;
skb
=
alloc_skb
(
buflen
,
GFP_KERNEL
);
skb
=
alloc_skb
(
sizeof
(
*
header
)
+
buflen
,
GFP_KERNEL
);
if
(
!
skb
)
{
dev_warn
(
&
card
->
dev
->
dev
,
"Failed to allocate sk_buff in solos_param_show()
\n
"
);
return
-
ENOMEM
;
...
...
@@ -215,7 +215,7 @@ static ssize_t solos_param_store(struct device *dev, struct device_attribute *at
buflen
=
strlen
(
attr
->
attr
.
name
)
+
11
+
count
;
skb
=
alloc_skb
(
buflen
,
GFP_KERNEL
);
skb
=
alloc_skb
(
sizeof
(
*
header
)
+
buflen
,
GFP_KERNEL
);
if
(
!
skb
)
{
dev_warn
(
&
card
->
dev
->
dev
,
"Failed to allocate sk_buff in solos_param_store()
\n
"
);
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