Commit 0b37d9c
committed
HID: simplify snto32()
jira LE-4321
cve CVE-2025-38556
Rebuild_History Non-Buildable kernel-4.18.0-553.76.1.el8_10
commit-author Dmitry Torokhov <dmitry.torokhov@gmail.com>
commit ae9b956
snto32() does exactly what sign_extend32() does, but handles
potentially malformed data coming from the device. Keep the checks,
but then call sign_extend32() to perform the actual conversion.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://patch.msgid.link/20241003144656.3786064-1-dmitry.torokhov@gmail.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
(cherry picked from commit ae9b956)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 12d8cbb commit 0b37d9c
1 file changed
+2
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
| 1303 | + | |
1306 | 1304 | | |
1307 | 1305 | | |
1308 | 1306 | | |
| |||
1313 | 1311 | | |
1314 | 1312 | | |
1315 | 1313 | | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
| 1314 | + | |
1322 | 1315 | | |
1323 | 1316 | | |
1324 | 1317 | | |
| |||
0 commit comments