Re: [PATCH] drm/fb-helper: generic: Fix drm_fbdev_client_restore()

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

 



> Fix by using drm_fb_helper_lastclose() which checks if fbdev is in use.

>  static int drm_fbdev_client_restore(struct drm_client_dev *client)
>  {
> -	struct drm_fb_helper *fb_helper = drm_fb_helper_from_client(client);
> -
> -	drm_fb_helper_restore_fbdev_mode_unlocked(fb_helper);
> +	drm_fb_helper_lastclose(client->dev);
>  
>  	return 0;
>  }

Hmm, at least the drm_fb_helper_lastclose() version I'm looking at
(branch drm-misc-next) just calls
drm_fb_helper_restore_fbdev_mode_unlocked without any check ...

cheers,
  Gerd




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux