diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/stradis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/stradis.c b/drivers/media/video/stradis.c index 3e736be5de84..eb220461ac77 100644 --- a/drivers/media/video/stradis.c +++ b/drivers/media/video/stradis.c | |||
@@ -1321,7 +1321,7 @@ static int saa_ioctl(struct inode *inode, struct file *file, | |||
1321 | u32 format; | 1321 | u32 format; |
1322 | if (copy_from_user(&p, arg, sizeof(p))) | 1322 | if (copy_from_user(&p, arg, sizeof(p))) |
1323 | return -EFAULT; | 1323 | return -EFAULT; |
1324 | if (p.palette < sizeof(palette2fmt) / sizeof(u32)) { | 1324 | if (p.palette < ARRAY_SIZE(palette2fmt)) { |
1325 | format = palette2fmt[p.palette]; | 1325 | format = palette2fmt[p.palette]; |
1326 | saa->win.color_fmt = format; | 1326 | saa->win.color_fmt = format; |
1327 | saawrite(format | 0x60, | 1327 | saawrite(format | 0x60, |