Skip to content
Commit bc569f86 authored by Lucas Stach's avatar Lucas Stach Committed by Greg Kroah-Hartman
Browse files

bus: imx-weim: fix valid range check

[ Upstream commit 7bca405c ]

When the range parsing was open-coded the number of u32 entries to
parse had to be a multiple of 4 and the driver checks this. With
the range parsing converted to the range parser the counting changes
from individual u32 entries to a complete range, so the check must
not reject counts not divisible by 4.

Fixes: 2a88e479

 ("bus: imx-weim: Remove open coded "ranges" parsing")
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9c29933e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment