drm/edid/firmware: Add built-in edid/1280x720.bin firmware
[platform/kernel/linux-starfive.git] / kernel / acct.c
index 62200d7..034a26d 100644 (file)
@@ -350,6 +350,8 @@ static comp_t encode_comp_t(unsigned long value)
                exp++;
        }
 
+       if (exp > (((comp_t) ~0U) >> MANTSIZE))
+               return (comp_t) ~0U;
        /*
         * Clean it up and polish it off.
         */