Re: [PATCH 2/3] drm/i915: Fix fbdev unload sequence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Daniel Vetter (2017-07-14 20:14:38)
Second nit:

> +void intel_fbdev_fini(struct drm_i915_private *dev_priv)
> +{
> +       struct intel_fbdev *ifbdev = dev_priv->fbdev;
> +
> +       if (!ifbdev)
> +               return;
> +
>         intel_fbdev_destroy(ifbdev);
>         dev_priv->fbdev = NULL;

Maybe
	struct intel_fbdev *ifbdev;

	ifbdev = fetch_and_zero(&dev_priv->fbdev);
	if (!fbdev)
		return;

	intel_fbdev_destroy(ifbdev);
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux