Thread (3 messages) flat view 3 messages, 3 authors, 2021-10-01

Re: [PATCH][next][V2] rtc: msc313: Fix unintentional sign extension issues with left shift of a u16

From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Date: 2021-10-01 21:29:48
Also in: kernel-janitors, linux-rtc, lkml

On Tue, 28 Sep 2021 14:46:54 +0100, Colin King wrote:
From: Colin Ian King <redacted>

Shifting the u16 value returned by readw by 16 bits to the left
will be promoted to a 32 bit signed int and then sign-extended
to an unsigned long. If the top bit of the readw is set then
the shifted value will be sign extended and the top 32 bits of
the result will be set.

[...]
Applied, thanks!

[1/1] rtc: msc313: Fix unintentional sign extension issues with left shift of a u16
      commit: f3606687b447c41d28a011c98373b62b1cd52345

Best regards,
-- 
Alexandre Belloni [off-list ref]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help