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
f35e2965
Commit
f35e2965
authored
Jul 26, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/ctxfi' into for-linus
* fix/ctxfi: ALSA: ctxfi - Fix uninitialized error checks
parents
29769d53
68110661
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
sound/pci/ctxfi/ctamixer.c
sound/pci/ctxfi/ctamixer.c
+6
-8
sound/pci/ctxfi/ctsrc.c
sound/pci/ctxfi/ctsrc.c
+3
-4
No files found.
sound/pci/ctxfi/ctamixer.c
View file @
f35e2965
...
...
@@ -242,13 +242,12 @@ static int get_amixer_rsc(struct amixer_mgr *mgr,
/* Allocate mem for amixer resource */
amixer
=
kzalloc
(
sizeof
(
*
amixer
),
GFP_KERNEL
);
if
(
NULL
==
amixer
)
{
err
=
-
ENOMEM
;
return
err
;
}
if
(
!
amixer
)
return
-
ENOMEM
;
/* Check whether there are sufficient
* amixer resources to meet request. */
err
=
0
;
spin_lock_irqsave
(
&
mgr
->
mgr_lock
,
flags
);
for
(
i
=
0
;
i
<
desc
->
msr
;
i
++
)
{
err
=
mgr_get_resource
(
&
mgr
->
mgr
,
1
,
&
idx
);
...
...
@@ -397,12 +396,11 @@ static int get_sum_rsc(struct sum_mgr *mgr,
/* Allocate mem for sum resource */
sum
=
kzalloc
(
sizeof
(
*
sum
),
GFP_KERNEL
);
if
(
NULL
==
sum
)
{
err
=
-
ENOMEM
;
return
err
;
}
if
(
!
sum
)
return
-
ENOMEM
;
/* Check whether there are sufficient sum resources to meet request. */
err
=
0
;
spin_lock_irqsave
(
&
mgr
->
mgr_lock
,
flags
);
for
(
i
=
0
;
i
<
desc
->
msr
;
i
++
)
{
err
=
mgr_get_resource
(
&
mgr
->
mgr
,
1
,
&
idx
);
...
...
sound/pci/ctxfi/ctsrc.c
View file @
f35e2965
...
...
@@ -724,12 +724,11 @@ static int get_srcimp_rsc(struct srcimp_mgr *mgr,
/* Allocate mem for SRCIMP resource */
srcimp
=
kzalloc
(
sizeof
(
*
srcimp
),
GFP_KERNEL
);
if
(
NULL
==
srcimp
)
{
err
=
-
ENOMEM
;
return
err
;
}
if
(
!
srcimp
)
return
-
ENOMEM
;
/* Check whether there are sufficient SRCIMP resources. */
err
=
0
;
spin_lock_irqsave
(
&
mgr
->
mgr_lock
,
flags
);
for
(
i
=
0
;
i
<
desc
->
msr
;
i
++
)
{
err
=
mgr_get_resource
(
&
mgr
->
mgr
,
1
,
&
idx
);
...
...
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