xenfb: connect to backend before registering fb
commit0a80fb10239b04c45e5e80aad8d4b2ca5ac407b2
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 27 Aug 2009 19:22:43 +0000 (27 12:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Aug 2009 19:31:18 +0000 (27 12:31 -0700)
tree580b0763d60546ab23953b376d2a9264b3e64bf2
parent9c504cadc443a3d002fa581ec5109c0ef02d7b14
xenfb: connect to backend before registering fb

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>
drivers/video/xen-fbfront.c