diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-video.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-video.c b/drivers/media/video/cx231xx/cx231xx-video.c index 16a73eab6726..597c416218cf 100644 --- a/drivers/media/video/cx231xx/cx231xx-video.c +++ b/drivers/media/video/cx231xx/cx231xx-video.c | |||
@@ -1902,9 +1902,12 @@ static int radio_queryctrl(struct file *file, void *priv, | |||
1902 | if (c->id < V4L2_CID_BASE || c->id >= V4L2_CID_LASTP1) | 1902 | if (c->id < V4L2_CID_BASE || c->id >= V4L2_CID_LASTP1) |
1903 | return -EINVAL; | 1903 | return -EINVAL; |
1904 | if (c->id == V4L2_CID_AUDIO_MUTE) { | 1904 | if (c->id == V4L2_CID_AUDIO_MUTE) { |
1905 | for (i = 0; i < CX231XX_CTLS; i++) | 1905 | for (i = 0; i < CX231XX_CTLS; i++) { |
1906 | if (cx231xx_ctls[i].v.id == c->id) | 1906 | if (cx231xx_ctls[i].v.id == c->id) |
1907 | break; | 1907 | break; |
1908 | } | ||
1909 | if (i == CX231XX_CTLS) | ||
1910 | return -EINVAL; | ||
1908 | *c = cx231xx_ctls[i].v; | 1911 | *c = cx231xx_ctls[i].v; |
1909 | } else | 1912 | } else |
1910 | *c = no_ctl; | 1913 | *c = no_ctl; |