mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
media: vimc: Constify vimc_ent_type structures
The vimc_ent_type structure contains static pointers to functions, and no other information that need to be modified after initialization. Make them const to avoid the risk of arbitrary code execution following an overflow that would overwrite the structure's contents. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
2ef9a1e722
commit
73a4385c69
@@ -494,7 +494,7 @@ err_free_vcapture:
|
||||
return ERR_PTR(ret);
|
||||
}
|
||||
|
||||
struct vimc_ent_type vimc_capture_type = {
|
||||
const struct vimc_ent_type vimc_capture_type = {
|
||||
.add = vimc_capture_add,
|
||||
.unregister = vimc_capture_unregister,
|
||||
.release = vimc_capture_release
|
||||
|
||||
Reference in New Issue
Block a user