Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354105
b: refs/heads/master
c: ec7e0ae
h: refs/heads/master
i:
  354103: 700dabc
v: v3
  • Loading branch information
Chen Gang authored and Greg Kroah-Hartman committed Jan 21, 2013
1 parent 018fb0c commit b0f37d8
Show file tree
Hide file tree
Showing 2 changed files with 7 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: cdbbc618f8f483d72e82af05f2873621cc9c2314
refs/heads/master: ec7e0aef31e2eece787f7c49df1f031f2a983265
9 changes: 6 additions & 3 deletions trunk/drivers/staging/tidspbridge/pmgr/dspapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,13 @@ u32 mgrwrap_register_object(union trapped_args *args, void *pr_ctxt)
CP_FM_USR(&uuid_obj, args->args_mgr_registerobject.uuid_obj, status, 1);
if (status)
goto func_end;
/* path_size is increased by 1 to accommodate NULL */
path_size = strlen_user((char *)
args->args_mgr_registerobject.sz_path_name) +
1;
args->args_mgr_registerobject.sz_path_name);
if (!path_size) {
status = -EINVAL;
goto func_end;
}

psz_path_name = kmalloc(path_size, GFP_KERNEL);
if (!psz_path_name) {
status = -ENOMEM;
Expand Down

0 comments on commit b0f37d8

Please sign in to comment.