1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
# Description: Fix vboxvideo_drm crash with kernel 2.6.33 / backported drm code
3
# Bug: http://www.virtualbox.org/ticket/6198
4
# Bug-Ubuntu: https://bugs.launchpad.net/bugs/535297
8
Index: trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c
9
===================================================================
10
--- trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c (revision 25591)
11
+++ trunk/src/VBox/Additions/linux/drm/vboxvideo_drm.c (revision 27248)
14
.release = drm_release,
15
+ /* This was changed with Linux 2.6.33 but Fedora backported this
16
+ * change to their 2.6.32 kernel. */
17
+#if defined(DRM_UNLOCKED) || LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 33)
18
+ .unlocked_ioctl = drm_ioctl,