linux/drivers/gpu/vga
Kirill A. Shutemov ccebddfbea vgaarb: fix signal handling in vga_get()
commit 9f5bd30818 upstream.

There are few defects in vga_get() related to signal hadning:

  - we shouldn't check for pending signals for TASK_UNINTERRUPTIBLE
    case;

  - if we found pending signal we must remove ourself from wait queue
    and change task state back to running;

  - -ERESTARTSYS is more appropriate, I guess.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2016-01-18 22:27:27 +00:00
..
Kconfig vga: compile fix, disable vga for s390 2012-11-30 17:47:28 +01:00
Makefile vga_switcheroo: initial implementation (v15) 2010-03-01 16:20:37 +10:00
vga_switcheroo.c vgaswitcheroo: add vga_switcheroo_fini_domain_pm_ops 2014-10-05 13:41:09 -07:00
vgaarb.c vgaarb: fix signal handling in vga_get() 2016-01-18 22:27:27 +00:00