Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343877
b: refs/heads/master
c: 3fac4eb
h: refs/heads/master
i:
  343875: 1d83350
v: v3
  • Loading branch information
Nicolas THERY authored and Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 8733a3b commit d976e29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 2e74598d7f4c6d1b34da84037d9a7f8b1c8e04ae
refs/heads/master: 3fac4eb374b58e834e54a104cce7d0bdecc863c0
6 changes: 2 additions & 4 deletions trunk/drivers/media/v4l2-core/v4l2-mem2mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,10 @@ struct v4l2_m2m_dev *v4l2_m2m_init(struct v4l2_m2m_ops *m2m_ops)
{
struct v4l2_m2m_dev *m2m_dev;

if (!m2m_ops)
if (!m2m_ops || WARN_ON(!m2m_ops->device_run) ||
WARN_ON(!m2m_ops->job_abort))
return ERR_PTR(-EINVAL);

BUG_ON(!m2m_ops->device_run);
BUG_ON(!m2m_ops->job_abort);

m2m_dev = kzalloc(sizeof *m2m_dev, GFP_KERNEL);
if (!m2m_dev)
return ERR_PTR(-ENOMEM);
Expand Down

0 comments on commit d976e29

Please sign in to comment.