Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357530
b: refs/heads/master
c: 88b404c
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Feb 8, 2013
1 parent ec8c56d commit cb0c233
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: de03277d6ae26d09b3af8617f291c4bb3db7d2eb
refs/heads/master: 88b404c435ffb6c103faf85cc1b41077dcd03bf9
9 changes: 6 additions & 3 deletions trunk/drivers/media/usb/tm6000/tm6000-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ int tm6000_read_write_usb(struct tm6000_core *dev, u8 req_type, u8 req,
u8 *data = NULL;
int delay = 5000;

mutex_lock(&dev->usb_lock);

if (len)
if (len) {
data = kzalloc(len, GFP_KERNEL);
if (!data)
return -ENOMEM;
}

mutex_lock(&dev->usb_lock);

if (req_type & USB_DIR_IN)
pipe = usb_rcvctrlpipe(dev->udev, 0);
Expand Down

0 comments on commit cb0c233

Please sign in to comment.