sisfb driver irq fixups
Already sent to Thomas,
sis_main.c renamed from sis_main.c~ +3 -2
@@ -651,6 +651,7 @@struct fb_fix_screeninfo fix;struct display *display;struct display_switch *sw; +static spinlock_t driver_lock =SPIN_LOCK_UNLOCKED ;long flags;if (con >=0 )
@@ -674,7 +675,7 @@ display->inverse = sisfb_inverse; display->var = *var; -save_flags (flags); +spin_lock_irqsave (&driver_lock, flags);switch (ivideo.video_bpp) {#ifdef FBCON_HAS_CFB8 case 8 :
@@ -706,7 +707,7 @@ }memcpy (&sisfb_sw, sw,sizeof (*sw)); display->dispsw = &sisfb_sw; -restore_flags (flags); +spin_unlock_irqrestore (&driver_lock, flags); display->scrollmode =SCROLL_YREDRAW ; sisfb_sw.bmove = fbcon_redraw_bmove;
Signature · 3 lines
http://www.PowerDNS.com Versatile DNS Software & Services http://www.tk the dot in .tk http://lartc.org Linux Advanced Routing & Traffic Control HOWTO
Quoted 1 line · bert hubert
Already sent to Thomas,
This actually needs to be a lock against concurrent modification of fb_display[] as it appears other things get at the data under the lock without taking the lock you introduced.
Cheers,
Bill