update min/max to match Linux kernels variants.