]> git.baikalelectronics.ru Git - kernel.git/commit
media: atmel: atmel-sama5d2-isc: fix wrong mask in YUYV format check
authorEugen Hristev <eugen.hristev@microchip.com>
Tue, 3 May 2022 08:44:17 +0000 (10:44 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:02:21 +0000 (11:02 +0200)
commita98102efdae399bbf1dc36a475c702a1a8adbc21
tree1652620936ab6bc3f5cf6053752ea821608f712e
parentb9ee18910ef396255b04560759fdcc140d02f45b
media: atmel: atmel-sama5d2-isc: fix wrong mask in YUYV format check

While this does not happen in production, this check should be done
versus the mask, as checking with the YCYC value may not include
some bits that may be set.
It is correct and safe to check the whole mask.

Fixes: 4a4e7c98ba31 ("media: atmel: atmel-sama5d2-isc: fix YUYV format")
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/atmel/atmel-sama5d2-isc.c