Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220368
b: refs/heads/master
c: cc58cbb
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Oct 15, 2010
1 parent a8226f0 commit 93d557b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aaf0885c30449d7b40d7cb5b07d6ff64b419c0d1
refs/heads/master: cc58cbb88569e3ecb9786b3da891e7d019d2cfff
10 changes: 7 additions & 3 deletions trunk/drivers/staging/tidspbridge/pmgr/dspapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,10 @@ u32 mgrwrap_register_object(union trapped_args *args, void *pr_ctxt)
args->args_mgr_registerobject.psz_path_name) +
1;
psz_path_name = kmalloc(path_size, GFP_KERNEL);
if (!psz_path_name)
if (!psz_path_name) {
status = -ENOMEM;
goto func_end;
}
ret = strncpy_from_user(psz_path_name,
(char *)args->args_mgr_registerobject.
psz_path_name, path_size);
Expand All @@ -503,8 +505,10 @@ u32 mgrwrap_register_object(union trapped_args *args, void *pr_ctxt)
goto func_end;
}

if (args->args_mgr_registerobject.obj_type >= DSP_DCDMAXOBJTYPE)
return -EINVAL;
if (args->args_mgr_registerobject.obj_type >= DSP_DCDMAXOBJTYPE) {
status = -EINVAL;
goto func_end;
}

status = dcd_register_object(&uuid_obj,
args->args_mgr_registerobject.obj_type,
Expand Down

0 comments on commit 93d557b

Please sign in to comment.