Dominik Brodowski
0e2c8b8f55
resources: fix call to alignf() in allocate_resource()
...
The second parameter to alignf() in allocate_resource() must
reflect what new resource is attempted to be allocated, else
functions like pcibios_align_resource() (at least on x86) or
pcmcia_align() can't work correctly.
Commit 1e5ad9679016275d422e36b12a98b0927d76f556 broke this by
setting the "new" resource until we're about to return success.
To keep the resource untouched when allocate_resource() fails,
a "tmp" resource is introduced.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-12-21 10:42:29 -08:00
..
2009-09-21 14:29:21 +02:00
2009-12-14 23:55:33 +01:00
2009-12-15 08:53:28 -08:00
2009-12-19 09:47:18 -08:00
2009-12-19 09:48:42 -08:00
2009-12-15 08:53:10 -08:00
2009-12-19 09:27:43 -08:00
2009-09-24 03:50:25 -04:00
2009-09-24 03:50:26 -04:00
2009-09-24 03:50:26 -04:00
2009-12-12 13:08:14 +01:00
2009-11-24 15:06:47 +11:00
2009-09-24 07:20:58 -07:00
2009-10-29 07:39:25 -07:00
2009-12-16 19:01:53 +01:00
2009-12-06 21:10:56 +01:00
2009-09-23 11:02:26 -07:00
2009-09-18 09:48:52 -07:00
2009-12-17 15:45:31 -08:00
2009-12-17 15:45:31 -08:00
2009-08-10 15:41:12 +02:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:34 +01:00
2009-11-27 06:21:57 +01:00
2009-12-14 23:55:34 +01:00
2009-11-18 16:32:12 +01:00
2009-11-10 11:23:29 +01:00
2009-12-03 11:50:11 +01:00
2009-12-17 07:23:42 -08:00
2009-09-19 13:13:17 -07:00
2009-12-11 08:43:20 -06:00
2009-11-10 09:33:46 +11:00
2009-12-05 15:30:21 -08:00
2009-12-16 07:20:13 -08:00
2009-12-16 19:01:57 +01:00
2009-09-23 07:39:29 -07:00
2009-12-14 23:55:32 +01:00
2009-12-08 08:02:38 -08:00
2009-12-17 16:00:19 -08:00
2009-10-11 11:20:58 -07:00
2009-12-14 23:55:32 +01:00
2009-12-03 11:50:11 +01:00
2009-08-30 03:08:26 +02:00
2009-09-24 07:20:58 -07:00
2009-12-16 10:23:43 -08:00
2009-12-15 08:53:32 -08:00
2009-12-19 09:48:42 -08:00
2009-09-24 07:21:04 -07:00
2009-12-16 07:20:12 -08:00
2009-10-14 15:31:10 +02:00
2009-11-18 12:36:05 +01:00
2009-08-21 21:43:46 +02:00
2009-12-17 15:45:32 -08:00
2009-09-20 20:15:40 +02:00
2009-09-24 07:20:59 -07:00
2009-11-22 18:58:16 +01:00
2009-11-22 18:58:16 +01:00
2009-12-14 09:58:24 -08:00
2009-12-03 11:35:25 +01:00
2009-12-03 11:35:25 +01:00
2009-12-03 11:35:25 +01:00
2009-12-03 11:35:25 +01:00
2009-12-16 07:20:05 -08:00
2009-10-01 16:11:13 -07:00
2009-12-21 10:42:29 -08:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:33 +01:00
2009-12-15 09:04:36 +01:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:33 +01:00
2009-12-14 23:55:33 +01:00
2009-12-16 19:01:58 +01:00
2009-12-09 10:03:07 +01:00
2009-12-20 19:05:02 +01:00
2009-12-16 19:01:58 +01:00
2009-12-20 23:31:23 +01:00
2009-12-19 09:47:34 -08:00
2009-12-01 08:20:31 -08:00
2009-12-08 07:38:50 -08:00
2009-12-01 08:20:31 -08:00
2009-12-15 09:02:01 -08:00
2009-12-14 09:58:24 -08:00
2009-10-29 22:34:13 +09:00
2009-12-14 23:55:33 +01:00
2009-10-26 09:40:30 +01:00
2009-12-08 07:55:01 -08:00
2009-12-19 09:47:34 -08:00
2009-12-16 12:36:18 -08:00
2009-12-03 12:14:38 -08:00
2009-12-17 16:58:26 -08:00
2009-12-08 19:27:08 -08:00
2009-12-17 01:30:49 +01:00
2009-09-21 15:14:55 +02:00
2009-09-23 18:13:10 -07:00
2009-12-02 10:22:59 +01:00
2009-11-02 16:02:39 +01:00
2009-11-12 02:04:55 -08:00
2009-08-10 14:43:09 +02:00
2009-12-10 09:35:44 -08:00