Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 108b5c8b authored by Shawn Lin's avatar Shawn Lin Committed by Mark Brown
Browse files

spi: rockchip: covert rsd_nsecs to u32 type



rsd_nsecs is defined as u8 memeber of struct rockchip_spi,
but using of_property_read_u32. That means we take risk of
truncation by type conversion if we pass on big value from
dt.

Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ec5c5d8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ struct rockchip_spi {
	u8 tmode;
	u8 bpw;
	u8 n_bytes;
	u8 rsd_nsecs;
	u32 rsd_nsecs;
	unsigned len;
	u32 speed;