kernel/radeon: Check the right variable in an if ().
authorSascha Wildner <saw@online.de>
Tue, 12 Jun 2018 07:11:16 +0000 (09:11 +0200)
committerSascha Wildner <saw@online.de>
Tue, 12 Jun 2018 07:11:16 +0000 (09:11 +0200)
This is Linux' 3a61b527b4e1f285d21b6e9e623dc45cf8bb391f.

Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/3102>

sys/dev/drm/radeon/radeon_uvd.c

index 096420f..a40ad89 100644 (file)
@@ -900,7 +900,7 @@ int radeon_uvd_calc_upll_dividers(struct radeon_device *rdev,
                /* calc dclk divider with current vco freq */
                dclk_div = radeon_uvd_calc_upll_post_div(vco_freq, dclk,
                                                         pd_min, pd_even);
-               if (vclk_div > pd_max)
+               if (dclk_div > pd_max)
                        break; /* vco is too big, it has to stop */
 
                /* calc score with current vco freq */