From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Paul Mundt <pmundt@mvista.com>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org,
linux-fbdev-devel@lists.sourceforge.net,
Marcelo Tosatti <marcelo@conectiva.com.br>
Subject: Re: [PATCH] fb_mmap() holding BKL
Date: Wed, 14 Nov 2001 18:32:30 -0500 [thread overview]
Message-ID: <3BF2FF0E.ABD507CF@mandrakesoft.com> (raw)
In-Reply-To: <20011114152656.A31149@mvista.com>
[-- Attachment #1: Type: text/plain, Size: 459 bytes --]
Paul Mundt wrote:
> 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.
No idea why your patch didn't apply here, but it didn't.
Attached is the same fix patch, rediff'd against 2.4.15-pre4.
Jeff
--
Jeff Garzik | Only so many songs can be sung
Building 1024 | with two lips, two lungs, and one tongue.
MandrakeSoft | - nomeansno
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 596 bytes --]
Index: drivers/video/fbmem.c
===================================================================
RCS file: /cvsroot/gkernel/linux_2_4/drivers/video/fbmem.c,v
retrieving revision 1.4
diff -u -r1.4 fbmem.c
--- drivers/video/fbmem.c 2001/10/11 09:39:14 1.4
+++ drivers/video/fbmem.c 2001/11/14 23:31:44
@@ -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);
}
prev parent reply other threads:[~2001-11-14 23:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-14 23:26 [PATCH] fb_mmap() holding BKL Paul Mundt
2001-11-14 23:32 ` Jeff Garzik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BF2FF0E.ABD507CF@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=pmundt@mvista.com \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.