Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199921
b: refs/heads/master
c: 6861800
h: refs/heads/master
i:
  199919: f10420e
v: v3
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed Jun 1, 2010
1 parent 70beaad commit 85c44c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 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: c641a18969178ac1649e022156c85adb7c889451
refs/heads/master: 6861800c1512ca8452c5f350a7c0af445ece773b
12 changes: 11 additions & 1 deletion trunk/drivers/media/video/pvrusb2/pvrusb2-hdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -4084,12 +4084,20 @@ void pvr2_hdw_device_reset(struct pvr2_hdw *hdw)

void pvr2_hdw_cpureset_assert(struct pvr2_hdw *hdw,int val)
{
char da[1];
char *da;
unsigned int pipe;
int ret;

if (!hdw->usb_dev) return;

da = kmalloc(16, GFP_KERNEL);

if (da == NULL) {
pvr2_trace(PVR2_TRACE_ERROR_LEGS,
"Unable to allocate memory to control CPU reset");
return;
}

pvr2_trace(PVR2_TRACE_INIT,"cpureset_assert(%d)",val);

da[0] = val ? 0x01 : 0x00;
Expand All @@ -4103,6 +4111,8 @@ void pvr2_hdw_cpureset_assert(struct pvr2_hdw *hdw,int val)
"cpureset_assert(%d) error=%d",val,ret);
pvr2_hdw_render_useless(hdw);
}

kfree(da);
}


Expand Down

0 comments on commit 85c44c2

Please sign in to comment.