aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@gmail.com>2008-04-22 13:46:11 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:53 -0400
commit078ff7953448163d8779e489bd0119dd9a9b4732 (patch)
treeb323e971c55d11e5f973a513c8b9dc20bd8f892a /drivers/media/video
parent03dea86de2243d5b3932604b799be26efeff010d (diff)
V4L/DVB (7402): add macro validation for v4l_compat_ioctl32
Added macro CONFIG_COMPAT for v4l_compat_ioctl32. Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/arv.c2
-rw-r--r--drivers/media/video/bw-qcam.c2
-rw-r--r--drivers/media/video/c-qcam.c2
-rw-r--r--drivers/media/video/cpia.c2
-rw-r--r--drivers/media/video/cpia2/cpia2_v4l.c2
-rw-r--r--drivers/media/video/et61x251/et61x251_core.c2
-rw-r--r--drivers/media/video/meye.c2
-rw-r--r--drivers/media/video/ov511.c2
-rw-r--r--drivers/media/video/pms.c2
-rw-r--r--drivers/media/video/pwc/pwc-if.c2
-rw-r--r--drivers/media/video/saa5249.c2
-rw-r--r--drivers/media/video/se401.c2
-rw-r--r--drivers/media/video/sn9c102/sn9c102_core.c2
-rw-r--r--drivers/media/video/stradis.c2
-rw-r--r--drivers/media/video/stv680.c2
-rw-r--r--drivers/media/video/usbvideo/usbvideo.c2
-rw-r--r--drivers/media/video/usbvideo/vicam.c2
-rw-r--r--drivers/media/video/w9966.c2
-rw-r--r--drivers/media/video/w9968cf.c2
-rw-r--r--drivers/media/video/zc0301/zc0301_core.c2
-rw-r--r--drivers/media/video/zoran_driver.c2
21 files changed, 42 insertions, 0 deletions
diff --git a/drivers/media/video/arv.c b/drivers/media/video/arv.c
index e4d891b29f63..8c7d1958856b 100644
--- a/drivers/media/video/arv.c
+++ b/drivers/media/video/arv.c
@@ -747,7 +747,9 @@ static const struct file_operations ar_fops = {
747 .release = video_exclusive_release, 747 .release = video_exclusive_release,
748 .read = ar_read, 748 .read = ar_read,
749 .ioctl = ar_ioctl, 749 .ioctl = ar_ioctl,
750#ifdef CONFIG_COMPAT
750 .compat_ioctl = v4l_compat_ioctl32, 751 .compat_ioctl = v4l_compat_ioctl32,
752#endif
751 .llseek = no_llseek, 753 .llseek = no_llseek,
752}; 754};
753 755
diff --git a/drivers/media/video/bw-qcam.c b/drivers/media/video/bw-qcam.c
index 40a8e92a01b9..b364adaae78d 100644
--- a/drivers/media/video/bw-qcam.c
+++ b/drivers/media/video/bw-qcam.c
@@ -898,7 +898,9 @@ static const struct file_operations qcam_fops = {
898 .open = video_exclusive_open, 898 .open = video_exclusive_open,
899 .release = video_exclusive_release, 899 .release = video_exclusive_release,
900 .ioctl = qcam_ioctl, 900 .ioctl = qcam_ioctl,
901#ifdef CONFIG_COMPAT
901 .compat_ioctl = v4l_compat_ioctl32, 902 .compat_ioctl = v4l_compat_ioctl32,
903#endif
902 .read = qcam_read, 904 .read = qcam_read,
903 .llseek = no_llseek, 905 .llseek = no_llseek,
904}; 906};
diff --git a/drivers/media/video/c-qcam.c b/drivers/media/video/c-qcam.c
index d4d5adfb0351..2c85ced61150 100644
--- a/drivers/media/video/c-qcam.c
+++ b/drivers/media/video/c-qcam.c
@@ -689,7 +689,9 @@ static const struct file_operations qcam_fops = {
689 .open = video_exclusive_open, 689 .open = video_exclusive_open,
690 .release = video_exclusive_release, 690 .release = video_exclusive_release,
691 .ioctl = qcam_ioctl, 691 .ioctl = qcam_ioctl,
692#ifdef CONFIG_COMPAT
692 .compat_ioctl = v4l_compat_ioctl32, 693 .compat_ioctl = v4l_compat_ioctl32,
694#endif
693 .read = qcam_read, 695 .read = qcam_read,
694 .llseek = no_llseek, 696 .llseek = no_llseek,
695}; 697};
diff --git a/drivers/media/video/cpia.c b/drivers/media/video/cpia.c
index 7c630f5ee725..2a81376ef503 100644
--- a/drivers/media/video/cpia.c
+++ b/drivers/media/video/cpia.c
@@ -3792,7 +3792,9 @@ static const struct file_operations cpia_fops = {
3792 .read = cpia_read, 3792 .read = cpia_read,
3793 .mmap = cpia_mmap, 3793 .mmap = cpia_mmap,
3794 .ioctl = cpia_ioctl, 3794 .ioctl = cpia_ioctl,
3795#ifdef CONFIG_COMPAT
3795 .compat_ioctl = v4l_compat_ioctl32, 3796 .compat_ioctl = v4l_compat_ioctl32,
3797#endif
3796 .llseek = no_llseek, 3798 .llseek = no_llseek,
3797}; 3799};
3798 3800
diff --git a/drivers/media/video/cpia2/cpia2_v4l.c b/drivers/media/video/cpia2/cpia2_v4l.c
index e378abec806d..7ce2789fa976 100644
--- a/drivers/media/video/cpia2/cpia2_v4l.c
+++ b/drivers/media/video/cpia2/cpia2_v4l.c
@@ -1927,7 +1927,9 @@ static const struct file_operations fops_template = {
1927 .poll = cpia2_v4l_poll, 1927 .poll = cpia2_v4l_poll,
1928 .ioctl = cpia2_ioctl, 1928 .ioctl = cpia2_ioctl,
1929 .llseek = no_llseek, 1929 .llseek = no_llseek,
1930#ifdef CONFIG_COMPAT
1930 .compat_ioctl = v4l_compat_ioctl32, 1931 .compat_ioctl = v4l_compat_ioctl32,
1932#endif
1931 .mmap = cpia2_mmap, 1933 .mmap = cpia2_mmap,
1932}; 1934};
1933 1935
diff --git a/drivers/media/video/et61x251/et61x251_core.c b/drivers/media/video/et61x251/et61x251_core.c
index 32ebb71097b5..5e749c528a62 100644
--- a/drivers/media/video/et61x251/et61x251_core.c
+++ b/drivers/media/video/et61x251/et61x251_core.c
@@ -2523,7 +2523,9 @@ static const struct file_operations et61x251_fops = {
2523 .open = et61x251_open, 2523 .open = et61x251_open,
2524 .release = et61x251_release, 2524 .release = et61x251_release,
2525 .ioctl = et61x251_ioctl, 2525 .ioctl = et61x251_ioctl,
2526#ifdef CONFIG_COMPAT
2526 .compat_ioctl = v4l_compat_ioctl32, 2527 .compat_ioctl = v4l_compat_ioctl32,
2528#endif
2527 .read = et61x251_read, 2529 .read = et61x251_read,
2528 .poll = et61x251_poll, 2530 .poll = et61x251_poll,
2529 .mmap = et61x251_mmap, 2531 .mmap = et61x251_mmap,
diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c
index caa9a7ac6184..61c980193c10 100644
--- a/drivers/media/video/meye.c
+++ b/drivers/media/video/meye.c
@@ -1761,7 +1761,9 @@ static const struct file_operations meye_fops = {
1761 .release = meye_release, 1761 .release = meye_release,
1762 .mmap = meye_mmap, 1762 .mmap = meye_mmap,
1763 .ioctl = meye_ioctl, 1763 .ioctl = meye_ioctl,
1764#ifdef CONFIG_COMPAT
1764 .compat_ioctl = v4l_compat_ioctl32, 1765 .compat_ioctl = v4l_compat_ioctl32,
1766#endif
1765 .poll = meye_poll, 1767 .poll = meye_poll,
1766 .llseek = no_llseek, 1768 .llseek = no_llseek,
1767}; 1769};
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c
index 6590058e8ff0..48ee2d892396 100644
--- a/drivers/media/video/ov511.c
+++ b/drivers/media/video/ov511.c
@@ -4659,7 +4659,9 @@ static const struct file_operations ov511_fops = {
4659 .read = ov51x_v4l1_read, 4659 .read = ov51x_v4l1_read,
4660 .mmap = ov51x_v4l1_mmap, 4660 .mmap = ov51x_v4l1_mmap,
4661 .ioctl = ov51x_v4l1_ioctl, 4661 .ioctl = ov51x_v4l1_ioctl,
4662#ifdef CONFIG_COMPAT
4662 .compat_ioctl = v4l_compat_ioctl32, 4663 .compat_ioctl = v4l_compat_ioctl32,
4664#endif
4663 .llseek = no_llseek, 4665 .llseek = no_llseek,
4664}; 4666};
4665 4667
diff --git a/drivers/media/video/pms.c b/drivers/media/video/pms.c
index 4a6c5723f7cc..51b1461d8fb6 100644
--- a/drivers/media/video/pms.c
+++ b/drivers/media/video/pms.c
@@ -885,7 +885,9 @@ static const struct file_operations pms_fops = {
885 .open = video_exclusive_open, 885 .open = video_exclusive_open,
886 .release = video_exclusive_release, 886 .release = video_exclusive_release,
887 .ioctl = pms_ioctl, 887 .ioctl = pms_ioctl,
888#ifdef CONFIG_COMPAT
888 .compat_ioctl = v4l_compat_ioctl32, 889 .compat_ioctl = v4l_compat_ioctl32,
890#endif
889 .read = pms_read, 891 .read = pms_read,
890 .llseek = no_llseek, 892 .llseek = no_llseek,
891}; 893};
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c
index b6240a1a606f..d2941c5656ca 100644
--- a/drivers/media/video/pwc/pwc-if.c
+++ b/drivers/media/video/pwc/pwc-if.c
@@ -159,7 +159,9 @@ static const struct file_operations pwc_fops = {
159 .poll = pwc_video_poll, 159 .poll = pwc_video_poll,
160 .mmap = pwc_video_mmap, 160 .mmap = pwc_video_mmap,
161 .ioctl = pwc_video_ioctl, 161 .ioctl = pwc_video_ioctl,
162#ifdef CONFIG_COMPAT
162 .compat_ioctl = v4l_compat_ioctl32, 163 .compat_ioctl = v4l_compat_ioctl32,
164#endif
163 .llseek = no_llseek, 165 .llseek = no_llseek,
164}; 166};
165static struct video_device pwc_template = { 167static struct video_device pwc_template = {
diff --git a/drivers/media/video/saa5249.c b/drivers/media/video/saa5249.c
index f55d6e85f20f..ec8c65dc8408 100644
--- a/drivers/media/video/saa5249.c
+++ b/drivers/media/video/saa5249.c
@@ -701,7 +701,9 @@ static const struct file_operations saa_fops = {
701 .open = saa5249_open, 701 .open = saa5249_open,
702 .release = saa5249_release, 702 .release = saa5249_release,
703 .ioctl = saa5249_ioctl, 703 .ioctl = saa5249_ioctl,
704#ifdef CONFIG_COMPAT
704 .compat_ioctl = v4l_compat_ioctl32, 705 .compat_ioctl = v4l_compat_ioctl32,
706#endif
705 .llseek = no_llseek, 707 .llseek = no_llseek,
706}; 708};
707 709
diff --git a/drivers/media/video/se401.c b/drivers/media/video/se401.c
index f17a539857d4..7b8cd30437c3 100644
--- a/drivers/media/video/se401.c
+++ b/drivers/media/video/se401.c
@@ -1224,7 +1224,9 @@ static const struct file_operations se401_fops = {
1224 .read = se401_read, 1224 .read = se401_read,
1225 .mmap = se401_mmap, 1225 .mmap = se401_mmap,
1226 .ioctl = se401_ioctl, 1226 .ioctl = se401_ioctl,
1227#ifdef CONFIG_COMPAT
1227 .compat_ioctl = v4l_compat_ioctl32, 1228 .compat_ioctl = v4l_compat_ioctl32,
1229#endif
1228 .llseek = no_llseek, 1230 .llseek = no_llseek,
1229}; 1231};
1230static struct video_device se401_template = { 1232static struct video_device se401_template = {
diff --git a/drivers/media/video/sn9c102/sn9c102_core.c b/drivers/media/video/sn9c102/sn9c102_core.c
index 94f393eebd51..898ae5f578cb 100644
--- a/drivers/media/video/sn9c102/sn9c102_core.c
+++ b/drivers/media/video/sn9c102/sn9c102_core.c
@@ -3224,7 +3224,9 @@ static const struct file_operations sn9c102_fops = {
3224 .open = sn9c102_open, 3224 .open = sn9c102_open,
3225 .release = sn9c102_release, 3225 .release = sn9c102_release,
3226 .ioctl = sn9c102_ioctl, 3226 .ioctl = sn9c102_ioctl,
3227#ifdef CONFIG_COMPAT
3227 .compat_ioctl = v4l_compat_ioctl32, 3228 .compat_ioctl = v4l_compat_ioctl32,
3229#endif
3228 .read = sn9c102_read, 3230 .read = sn9c102_read,
3229 .poll = sn9c102_poll, 3231 .poll = sn9c102_poll,
3230 .mmap = sn9c102_mmap, 3232 .mmap = sn9c102_mmap,
diff --git a/drivers/media/video/stradis.c b/drivers/media/video/stradis.c
index 3118dd322b24..c109511f21ea 100644
--- a/drivers/media/video/stradis.c
+++ b/drivers/media/video/stradis.c
@@ -1906,7 +1906,9 @@ static const struct file_operations saa_fops = {
1906 .open = saa_open, 1906 .open = saa_open,
1907 .release = saa_release, 1907 .release = saa_release,
1908 .ioctl = saa_ioctl, 1908 .ioctl = saa_ioctl,
1909#ifdef CONFIG_COMPAT
1909 .compat_ioctl = v4l_compat_ioctl32, 1910 .compat_ioctl = v4l_compat_ioctl32,
1911#endif
1910 .read = saa_read, 1912 .read = saa_read,
1911 .llseek = no_llseek, 1913 .llseek = no_llseek,
1912 .write = saa_write, 1914 .write = saa_write,
diff --git a/drivers/media/video/stv680.c b/drivers/media/video/stv680.c
index 1542797c048f..78730294454e 100644
--- a/drivers/media/video/stv680.c
+++ b/drivers/media/video/stv680.c
@@ -1394,7 +1394,9 @@ static const struct file_operations stv680_fops = {
1394 .read = stv680_read, 1394 .read = stv680_read,
1395 .mmap = stv680_mmap, 1395 .mmap = stv680_mmap,
1396 .ioctl = stv680_ioctl, 1396 .ioctl = stv680_ioctl,
1397#ifdef CONFIG_COMPAT
1397 .compat_ioctl = v4l_compat_ioctl32, 1398 .compat_ioctl = v4l_compat_ioctl32,
1399#endif
1398 .llseek = no_llseek, 1400 .llseek = no_llseek,
1399}; 1401};
1400static struct video_device stv680_template = { 1402static struct video_device stv680_template = {
diff --git a/drivers/media/video/usbvideo/usbvideo.c b/drivers/media/video/usbvideo/usbvideo.c
index 7f3cdc9a0624..300188097de6 100644
--- a/drivers/media/video/usbvideo/usbvideo.c
+++ b/drivers/media/video/usbvideo/usbvideo.c
@@ -946,7 +946,9 @@ static const struct file_operations usbvideo_fops = {
946 .read = usbvideo_v4l_read, 946 .read = usbvideo_v4l_read,
947 .mmap = usbvideo_v4l_mmap, 947 .mmap = usbvideo_v4l_mmap,
948 .ioctl = usbvideo_v4l_ioctl, 948 .ioctl = usbvideo_v4l_ioctl,
949#ifdef CONFIG_COMPAT
949 .compat_ioctl = v4l_compat_ioctl32, 950 .compat_ioctl = v4l_compat_ioctl32,
951#endif
950 .llseek = no_llseek, 952 .llseek = no_llseek,
951}; 953};
952static const struct video_device usbvideo_template = { 954static const struct video_device usbvideo_template = {
diff --git a/drivers/media/video/usbvideo/vicam.c b/drivers/media/video/usbvideo/vicam.c
index da1ba0211108..4d4795ae3bc7 100644
--- a/drivers/media/video/usbvideo/vicam.c
+++ b/drivers/media/video/usbvideo/vicam.c
@@ -1066,7 +1066,9 @@ static const struct file_operations vicam_fops = {
1066 .read = vicam_read, 1066 .read = vicam_read,
1067 .mmap = vicam_mmap, 1067 .mmap = vicam_mmap,
1068 .ioctl = vicam_ioctl, 1068 .ioctl = vicam_ioctl,
1069#ifdef CONFIG_COMPAT
1069 .compat_ioctl = v4l_compat_ioctl32, 1070 .compat_ioctl = v4l_compat_ioctl32,
1071#endif
1070 .llseek = no_llseek, 1072 .llseek = no_llseek,
1071}; 1073};
1072 1074
diff --git a/drivers/media/video/w9966.c b/drivers/media/video/w9966.c
index cc8c8246c30e..cdb396d9203c 100644
--- a/drivers/media/video/w9966.c
+++ b/drivers/media/video/w9966.c
@@ -188,7 +188,9 @@ static const struct file_operations w9966_fops = {
188 .open = video_exclusive_open, 188 .open = video_exclusive_open,
189 .release = video_exclusive_release, 189 .release = video_exclusive_release,
190 .ioctl = w9966_v4l_ioctl, 190 .ioctl = w9966_v4l_ioctl,
191#ifdef CONFIG_COMPAT
191 .compat_ioctl = v4l_compat_ioctl32, 192 .compat_ioctl = v4l_compat_ioctl32,
193#endif
192 .read = w9966_v4l_read, 194 .read = w9966_v4l_read,
193 .llseek = no_llseek, 195 .llseek = no_llseek,
194}; 196};
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c
index cce23d24e6fc..840522442d07 100644
--- a/drivers/media/video/w9968cf.c
+++ b/drivers/media/video/w9968cf.c
@@ -3461,7 +3461,9 @@ static const struct file_operations w9968cf_fops = {
3461 .release = w9968cf_release, 3461 .release = w9968cf_release,
3462 .read = w9968cf_read, 3462 .read = w9968cf_read,
3463 .ioctl = w9968cf_ioctl, 3463 .ioctl = w9968cf_ioctl,
3464#ifdef CONFIG_COMPAT
3464 .compat_ioctl = v4l_compat_ioctl32, 3465 .compat_ioctl = v4l_compat_ioctl32,
3466#endif
3465 .mmap = w9968cf_mmap, 3467 .mmap = w9968cf_mmap,
3466 .llseek = no_llseek, 3468 .llseek = no_llseek,
3467}; 3469};
diff --git a/drivers/media/video/zc0301/zc0301_core.c b/drivers/media/video/zc0301/zc0301_core.c
index af357cbcb9bb..363dd2b9475c 100644
--- a/drivers/media/video/zc0301/zc0301_core.c
+++ b/drivers/media/video/zc0301/zc0301_core.c
@@ -1925,7 +1925,9 @@ static const struct file_operations zc0301_fops = {
1925 .open = zc0301_open, 1925 .open = zc0301_open,
1926 .release = zc0301_release, 1926 .release = zc0301_release,
1927 .ioctl = zc0301_ioctl, 1927 .ioctl = zc0301_ioctl,
1928#ifdef CONFIG_COMPAT
1928 .compat_ioctl = v4l_compat_ioctl32, 1929 .compat_ioctl = v4l_compat_ioctl32,
1930#endif
1929 .read = zc0301_read, 1931 .read = zc0301_read,
1930 .poll = zc0301_poll, 1932 .poll = zc0301_poll,
1931 .mmap = zc0301_mmap, 1933 .mmap = zc0301_mmap,
diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c
index 5cca61cb8ba8..8c0a379071e5 100644
--- a/drivers/media/video/zoran_driver.c
+++ b/drivers/media/video/zoran_driver.c
@@ -4644,7 +4644,9 @@ static const struct file_operations zoran_fops = {
4644 .open = zoran_open, 4644 .open = zoran_open,
4645 .release = zoran_close, 4645 .release = zoran_close,
4646 .ioctl = zoran_ioctl, 4646 .ioctl = zoran_ioctl,
4647#ifdef CONFIG_COMPAT
4647 .compat_ioctl = v4l_compat_ioctl32, 4648 .compat_ioctl = v4l_compat_ioctl32,
4649#endif
4648 .llseek = no_llseek, 4650 .llseek = no_llseek,
4649 .read = zoran_read, 4651 .read = zoran_read,
4650 .write = zoran_write, 4652 .write = zoran_write,