target/iscsi: Fix double free in lio_target_tiqn_addtpg()
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / drm_crtc.c
index a02238c85e18d265978633573418670f3b903cbc..5e4bb4837bae7216cbdc8ea64b9ae2e7429646fa 100644 (file)
@@ -2682,8 +2682,6 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,
                        goto out;
                }
 
-               drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V);
-
                /*
                 * Check whether the primary plane supports the fb pixel format.
                 * Drivers not implementing the universal planes API use a
@@ -5233,6 +5231,9 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev,
        unsigned long flags;
        int ret = -EINVAL;
 
+       if (!drm_core_check_feature(dev, DRIVER_MODESET))
+               return -EINVAL;
+
        if (page_flip->flags & ~DRM_MODE_PAGE_FLIP_FLAGS ||
            page_flip->reserved != 0)
                return -EINVAL;