ASoC: Intel: Skylake: Fix a shift wrapping bug
Subsystems (4)
PATCH 1/1 ASoC: Intel: Skylake: Fix a shift wrapping bug
"*val" is a u64. It definitely looks like we intend to use the high 32 bits as well.
sound/soc/intel/skylake/skl-sst-utils.c +1 -1
@@ -179,7 +179,7 @@ static inline int skl_getid_32(struct uuid_module *module, u64 *val, index =ffz (mask_val); pvt_id = index + word1_mask + word2_mask;if (pvt_id <= (max_inst -1 )) { - *val |=1 << (index + word1_mask); + *val |=1ULL << (index + word1_mask);return pvt_id; } }
Quoted 5 lines · Dan Carpenter
"*val" is a u64. It definitely looks like we intend to use the high 32 bits as well.
Fixes 700a9a63f9c1 ("ASoC: Intel: Skylake: Add module instance id generation APIs")Signed-off-by Dan Carpenter <[email protected]>
Signature · 1 line
~Vinod
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: Fix a shift wrapping bug" to the asoc tree
In reply to Dan CarpenterThe patch
ASoC: Intel: Skylake: Fix a shift wrapping bug
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
c8eabf821cac120afb78ca251b07cbf520406a7eMon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Thu, 13 Oct 2016 11:55:48 +0300
Subject: [PATCH] ASoC: Intel: Skylake: Fix a shift wrapping bug
"*val" is a u64. It definitely looks like we intend to use the high 32 bits as well.
--- sound/soc/intel/skylake/skl-sst-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-sst-utils.c +1 -1
@@ -179,7 +179,7 @@ static inline int skl_getid_32(struct uuid_module *module, u64 *val, index =ffz (mask_val); pvt_id = index + word1_mask + word2_mask;if (pvt_id <= (max_inst -1 )) { - *val |=1 << (index + word1_mask); + *val |=1ULL << (index + word1_mask);return pvt_id; } }
Signature · 1 line
2.8.1