Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177747813
D61763.1795192268.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
393 B
Referenced Files
None
Subscribers
None
D61763.1795192268.diff
View Options
diff --git a/sys/dev/iicbus/sensor/tmp461.c b/sys/dev/iicbus/sensor/tmp461.c
--- a/sys/dev/iicbus/sensor/tmp461.c
+++ b/sys/dev/iicbus/sensor/tmp461.c
@@ -263,7 +263,7 @@
goto fail;
data -= offset;
- *temperature = extract_signed_bitfield_32(data, 0, 7) << 4;
+ *temperature = sign_extend_32(data << 4, 11);
if (remote_measure) {
if (sc->conf & TMP461_REMOTE_TEMP_DOUBLE_REG) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 20, 4:31 PM (18 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41870805
Default Alt Text
D61763.1795192268.diff (393 B)
Attached To
Mode
D61763: TMP461 sensor: Fix UB when reading the temperature
Attached
Detach File
Event Timeline