aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2024-10-03 15:06:45 +0800
committerVinod Koul <vkoul@kernel.org>2024-10-03 13:28:51 +0530
commita489afc105ed55f7537fb158e40d083ee57a698b (patch)
tree27cc69247aafdbcf95a21750d9dbfe686dd7a533 /scripts/lib/kdoc/kdoc_parser.py
parentsoundwire: mipi-disco: remove DPn audio-modes (diff)
downloadlinux-rng-a489afc105ed55f7537fb158e40d083ee57a698b.tar.xz
linux-rng-a489afc105ed55f7537fb158e40d083ee57a698b.zip
soundwire: mipi-disco: add error handling for property array read
The existing code assumes that there are no possible errors when using fwnode_property_read_u32_array(), because fwnode_property_count_u32() reads this array to determine its number of elements. We need to also protect the second read to be completely bullet-proof. Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20241003070650.62787-10-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions