[PATCH 5.1 348/405] drm/amd/display: Fix Divide by 0 in memory calculations