[Nouveau] [PATCH] drm/nouveau/pm: Prevent overflow in nouveau_perf_init()

Martin Peres martin.peres at free.fr
Sat Jun 11 07:20:58 PDT 2011


Le 11/06/2011 14:30, Emil Velikov a écrit :
> +	if (entries>  NOUVEAU_PM_MAX_LEVEL) {
> +		NV_DEBUG(dev, "perf table has too many entries - buggy vbios?\n");
> +		entries = NOUVEAU_PM_MAX_LEVEL;
> +	}
> +
I would suggest using NV_ERROR or INFO. How will we get buggy vbios if 
we don't warn the users of such cards?


More information about the Nouveau mailing list