Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202028
b: refs/heads/master
c: 7a12f4b
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 238bb2f commit a8d8399
Show file tree
Hide file tree
Showing 2 changed files with 3 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: cd3172d7dabdac4545d8246da62b570b9acf8058
refs/heads/master: 7a12f4b50dad4fdffd218c6fba6b9564bf86185e
5 changes: 2 additions & 3 deletions trunk/drivers/media/video/zoran/videocodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,14 @@ videocodec_attach (struct videocodec_master *master)
if (!try_module_get(h->codec->owner))
return NULL;

codec =
kmalloc(sizeof(struct videocodec), GFP_KERNEL);
codec = kmemdup(h->codec, sizeof(struct videocodec),
GFP_KERNEL);
if (!codec) {
dprintk(1,
KERN_ERR
"videocodec_attach: no mem\n");
goto out_module_put;
}
memcpy(codec, h->codec, sizeof(struct videocodec));

snprintf(codec->name, sizeof(codec->name),
"%s[%d]", codec->name, h->attached);
Expand Down

0 comments on commit a8d8399

Please sign in to comment.