* [Patch] small fix for warning in exec_domain.c
@ 2001-10-29 9:00 Manik Raina
2001-10-29 13:19 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Manik Raina @ 2001-10-29 9:00 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-abi-devel
Hi all,
When support for Kernel modules is not configured, we get
a warning. This fix solves that.
thanks
Manik Raina
Index: exec_domain.c
===================================================================
RCS file: /vger/linux/kernel/exec_domain.c,v
retrieving revision 1.21
diff -u -r1.21 exec_domain.c
--- exec_domain.c 25 Oct 2001 20:23:02 -0000 1.21
+++ exec_domain.c 29 Oct 2001 08:40:02 -0000
@@ -77,7 +77,6 @@
lookup_exec_domain(u_long personality)
{
struct exec_domain * ep;
- char buffer[30];
u_long pers = personality(personality);
read_lock(&exec_domains_lock);
@@ -89,8 +88,11 @@
#ifdef CONFIG_KMOD
read_unlock(&exec_domains_lock);
- sprintf(buffer, "personality-%ld", pers);
- request_module(buffer);
+ {
+ char buffer[30];
+ sprintf(buffer, "personality-%ld", pers);
+ request_module(buffer);
+ }
read_lock(&exec_domains_lock);
for (ep = exec_domains; ep; ep = ep->next) {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch] small fix for warning in exec_domain.c
2001-10-29 9:00 [Patch] small fix for warning in exec_domain.c Manik Raina
@ 2001-10-29 13:19 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2001-10-29 13:19 UTC (permalink / raw)
To: Manik Raina; +Cc: linux-kernel
In article <Pine.GSO.4.33.0110291428230.20450-100000@cbin2-view1.cisco.com> you wrote:
> Hi all,
> When support for Kernel modules is not configured, we get
> a warning. This fix solves that.
Looks sane to me.
Christoph
--
Of course it doesn't work. We've performed a software upgrade.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-29 13:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-29 9:00 [Patch] small fix for warning in exec_domain.c Manik Raina
2001-10-29 13:19 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®