xenfb: connect to backend before registering fb
commit27a473ee7017dabac9073d0c57db72bd680409a8
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 27 Aug 2009 19:22:43 +0000 (27 12:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:34:06 +0000 (8 20:34 -0700)
treef35d719ac32cc9598fc41c9cdef8db50c3b4bdcc
parent92a110d0d892b93bac2d5d862ad1f41a508a1865
xenfb: connect to backend before registering fb

commit 0a80fb10239b04c45e5e80aad8d4b2ca5ac407b2 upstream.

As soon as the framebuffer is registered, our methods may be called by the
kernel. This leads to a crash as xenfb_refresh() gets called before we have
the irq.

Connect to the backend before registering our framebuffer with the kernel.

[ Fixes bug http://bugzilla.kernel.org/show_bug.cgi?id=14059 ]

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/xen-fbfront.c