Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205874
b: refs/heads/master
c: dd85c99
h: refs/heads/master
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent 3940eac commit 08c2c89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4018e396518e56a156fd99a2a44a675bc87437dd
refs/heads/master: dd85c9911d6eb44f398d07006a3c4ce57d36b7b9
4 changes: 4 additions & 0 deletions trunk/drivers/staging/tidspbridge/pmgr/dspapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1407,6 +1407,8 @@ u32 strmwrap_allocate_buffer(union trapped_args *args, void *pr_ctxt)
return -EINVAL;

ap_buffer = kmalloc((num_bufs * sizeof(u8 *)), GFP_KERNEL);
if (ap_buffer == NULL)
return -ENOMEM;

status = strm_allocate_buffer(args->args_strm_allocatebuffer.hstream,
args->args_strm_allocatebuffer.usize,
Expand Down Expand Up @@ -1446,6 +1448,8 @@ u32 strmwrap_free_buffer(union trapped_args *args, void *pr_ctxt)
return -EINVAL;

ap_buffer = kmalloc((num_bufs * sizeof(u8 *)), GFP_KERNEL);
if (ap_buffer == NULL)
return -ENOMEM;

CP_FM_USR(ap_buffer, args->args_strm_freebuffer.ap_buffer, status,
num_bufs);
Expand Down

0 comments on commit 08c2c89

Please sign in to comment.