vgaarb: fix "target=default" passing
authorKyle McMartin <kyle@redhat.com>
Tue, 16 Feb 2010 21:18:37 +0000 (16:18 -0500)
committerDave Airlie <airlied@redhat.com>
Fri, 19 Feb 2010 21:28:04 +0000 (07:28 +1000)
commit2cc9116c2b37c525965d76a3e6def38913259427
tree16d5540bae7da373a52efd179c094f5cfc80c472
parent6b15835282f9c6a023e2625455bfdb822bb9cc64
vgaarb: fix "target=default" passing

Commit 77c1ff3982c6b36961725dd19e872a1c07df7f3b fixed the userspace
pointer dereference, but introduced another bug pointed out by Eugene Teo
in RH bug #564264. Instead of comparing the point we were at in the string,
we instead compared the beginning of the string to "default".

Signed-off-by: Kyle McMartin <kyle@redhat.com>
Reported-by: Eugene Teo <eteo@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/vga/vgaarb.c