Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202039
b: refs/heads/master
c: c6cfe05
h: refs/heads/master
i:
  202037: deb12ff
  202035: 1b19c13
  202031: 3a4a419
v: v3
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 3d0d21f commit e6c0a14
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 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: 3e9442c6f1d50bce083c5870f293647efbd6f828
refs/heads/master: c6cfe05532cf6e9858d60ee699c51b906842489d
10 changes: 3 additions & 7 deletions trunk/drivers/media/dvb/dvb-core/dvb_demux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1130,13 +1130,9 @@ static int dvbdmx_write(struct dmx_demux *demux, const char __user *buf, size_t
if ((!demux->frontend) || (demux->frontend->source != DMX_MEMORY_FE))
return -EINVAL;

p = kmalloc(count, GFP_USER);
if (!p)
return -ENOMEM;
if (copy_from_user(p, buf, count)) {
kfree(p);
return -EFAULT;
}
p = memdup_user(buf, count);
if (IS_ERR(p))
return PTR_ERR(p);
if (mutex_lock_interruptible(&dvbdemux->mutex)) {
kfree(p);
return -ERESTARTSYS;
Expand Down
13 changes: 4 additions & 9 deletions trunk/drivers/media/video/dabusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,16 +706,11 @@ static long dabusb_ioctl (struct file *file, unsigned int cmd, unsigned long arg
switch (cmd) {

case IOCTL_DAB_BULK:
pbulk = kmalloc(sizeof (bulk_transfer_t), GFP_KERNEL);
pbulk = memdup_user((void __user *)arg,
sizeof(bulk_transfer_t));

if (!pbulk) {
ret = -ENOMEM;
break;
}

if (copy_from_user (pbulk, (void __user *) arg, sizeof (bulk_transfer_t))) {
ret = -EFAULT;
kfree (pbulk);
if (IS_ERR(pbulk)) {
ret = PTR_ERR(pbulk);
break;
}

Expand Down

0 comments on commit e6c0a14

Please sign in to comment.