mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
spi: pxa2xx: Validate the correctness of the SSP type
Currently we blindly apply the SSP type value from any source of the information. Increase robustness by validating the value before use. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20221021190018.63646-2-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
4194dabe8c
commit
88a947215c
@@ -229,6 +229,7 @@ enum pxa_ssp_type {
|
||||
LPSS_SPT_SSP,
|
||||
LPSS_BXT_SSP,
|
||||
LPSS_CNL_SSP,
|
||||
SSP_MAX
|
||||
};
|
||||
|
||||
struct ssp_device {
|
||||
|
||||
Reference in New Issue
Block a user