2.6.1-rc1 arch/i386/kernel/setup.c wrong parameter order to request resources ?

From: Arjan van de Ven
Date: Sun Jan 04 2004 - 10:43:17 EST


Hi,

in setup.c the kernel tries to reserve ram resources for system ram etc
etc. However it seems it's done with the parameters to request_resource in
the wrong order (it certainly is opposite order from other neighboring
code). Can someone confirm I'm not overlooking something?

Greetings,
Arjan van de Ven

--- linux-2.6.0/arch/i386/kernel/setup.c~ 2004-01-04 16:37:34.622450000 +0100
+++ linux-2.6.0/arch/i386/kernel/setup.c 2004-01-04 16:37:34.622450000 +0100
@@ -834,8 +834,8 @@
* so we try it repeatedly and let the resource manager
* test it.
*/
- request_resource(res, &code_resource);
- request_resource(res, &data_resource);
+ request_resource(&code_resource, res);
+ request_resource(&data_resource, res);
}
}

Attachment: pgp00000.pgp
Description: PGP signature