Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330777
b: refs/heads/master
c: b17d394
h: refs/heads/master
i:
  330775: 904a392
v: v3
  • Loading branch information
Nicolas THERY authored and Mauro Carvalho Chehab committed Aug 12, 2012
1 parent f905daf commit de97b22
Show file tree
Hide file tree
Showing 2 changed files with 4 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: ff54298bc743c42fac205c0fc1b62271682b3668
refs/heads/master: b17d39453b40730cbfdb2cab9565f8ba8627b7f8
4 changes: 3 additions & 1 deletion trunk/drivers/media/media-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ static int media_device_get_info(struct media_device *dev,
info.hw_revision = dev->hw_revision;
info.driver_version = dev->driver_version;

return copy_to_user(__info, &info, sizeof(*__info));
if (copy_to_user(__info, &info, sizeof(*__info)))
return -EFAULT;
return 0;
}

static struct media_entity *find_entity(struct media_device *mdev, u32 id)
Expand Down

0 comments on commit de97b22

Please sign in to comment.