Skip to content

const qualifier lost on some device config_info casts #25247

@pabigot

Description

@pabigot

The object pointed to by the config_info field of struct device is const qualified, but some conversions of that object to a driver-specific type discard the qualifier. This is a violation of MISRA 11.8 as it produces undefined behavior.

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions