drm/gma500: Use correct unref in the gem bo create function

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

 



Please apply the following patch to stable 4.4. Seems we can hit this
on CDV without an evil userspace. Fixes a warning and a race.

commit d3e376f52d095103ca51dbda4d6ff8aaf488f98f
Author: Daniel Vetter <daniel.vetter@xxxxxxxx>
Date:   Mon Nov 23 10:32:49 2015 +0100

    drm/gma500: Use correct unref in the gem bo create function

    This is called without dev->struct_mutex held, we need to use the
    _unlocked variant.

    Never caught in the wild since you'd need an evil userspace which
    races a gem_close ioctl call with the in-progress open.

    Cc: Patrik Jakobsson <patrik.r.jakobsson@xxxxxxxxx>
    Acked-by: Patrik Jakobsson <patrik.r.jakobsson@xxxxxxxxx>
    Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>
    Link: http://patchwork.freedesktop.org/patch/msgid/1448271183-20523-17-git-send-email-daniel.vetter@xxxxxxxx

Cc: <stable@xxxxxxxxxxxxxxx> # v4.4
Tested-by: David John Summers
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux