[PATCH] fb_mmap() holding BKL

From: Paul Mundt (pmundt@mvista.com)
Date: Wed Nov 14 2001 - 18:26:56 EST


Hello,

Just a minor cleanup.. in the event of some sanity checking in fb_mmap(), the
BKL is accidentally held on a return.. this trivial patch fixes this issue.
(Against 2.4.14).

Please apply.

Regards,

-- 
Paul Mundt <pmundt@mvista.com>
MontaVista Software, Inc.

--- linux/drivers/video/fbmem.c.orig Wed Nov 14 15:17:40 2001 +++ linux/drivers/video/fbmem.c Wed Nov 14 15:17:50 2001 @@ -563,8 +563,10 @@ /* memory mapped io */ off -= len; fb->fb_get_var(&var, PROC_CONSOLE(info), info); - if (var.accel_flags) + if (var.accel_flags) { + unlock_kernel(); return -EINVAL; + } start = fix.mmio_start; len = PAGE_ALIGN((start & ~PAGE_MASK)+fix.mmio_len); }


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 15 2001 - 21:00:40 EST