[PATCH openEuler-1.0-LTS 16/30] loop: Check for overflow while configuring loop