Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367163
b: refs/heads/master
c: 6b1dce2
h: refs/heads/master
i:
  367161: c142cfe
  367159: 440e567
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Apr 16, 2013
1 parent 8409eee commit 168f771
Show file tree
Hide file tree
Showing 2 changed files with 2 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: a8f35ce3d6f5b776463f03403e0319c2415401f7
refs/heads/master: 6b1dce251fa21caea4e0021fd3fd0d8dcdece784
4 changes: 1 addition & 3 deletions trunk/drivers/media/pci/cx25821/cx25821-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,10 +1163,8 @@ int cx25821_vidioc_s_input(struct file *file, void *priv, unsigned int i)
return err;
}

if (i >= CX25821_NR_INPUT) {
dprintk(1, "%s(): -EINVAL\n", __func__);
if (i >= CX25821_NR_INPUT || INPUT(i)->type == 0)
return -EINVAL;
}

mutex_lock(&dev->lock);
cx25821_video_mux(dev, i);
Expand Down

0 comments on commit 168f771

Please sign in to comment.