This pull request contains Broadcom ARM/ARM64/MIPS SoCs drivers fixes for 5.8, please pull the following: - Andy provides a fix for the Raspberry Pi firmware driver to print the correct time upon boot. This is a fallout from a converstion to use the ptT format * tag 'arm-soc/for-5.8/drivers-fixes' of https://github.com/Broadcom/stblinux: ARM: bcm2835: Fix integer overflow in rpi_firmware_print_firmware_revision()
Unified · Split
| @@ -181,6 +181,7 @@ EXPORT_SYMBOL_GPL(rpi_firmware_property); · 180 unmodified lines | ||
| 181 | 181 | static void |
| 182 | 182 | rpi_firmware_print_firmware_revision(struct rpi_firmware *fw) |
| 183 | 183 | { |
| 184 | + time64_t date_and_time; | |
| 184 | 185 | u32 packet; |
| 185 | 186 | int ret = rpi_firmware_property(fw, |
| 186 | 187 | RPI_FIRMWARE_GET_FIRMWARE_REVISION, |
| @@ -189,7 +190,9 @@ rpi_firmware_print_firmware_revision(struct rpi_firmware *fw) · 2 unmodified lines | ||
| 189 | 190 | if (ret) |
| 190 | 191 | return; |
| 191 | 192 | |
| 192 | − dev_info(fw->cl.dev, "Attached to firmware from %ptT\n", &packet); | |
| 193 | + /* This is not compatible with y2038 */ | |
| 194 | + date_and_time = packet; | |
| 195 | + dev_info(fw->cl.dev, "Attached to firmware from %ptT\n", &date_and_time); | |
| 193 | 196 | } |
| 194 | 197 | |
| 195 | 198 | static void |