From: Dominik Brodowski Date: Sun, 20 Dec 2009 09:50:02 +0000 (+0100) Subject: resources: fix call to alignf() in allocate_resource() X-Git-Tag: v2.6.33-rc2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e2c8b8f55072a98b99e7bdad55c912084d6a526;p=pandora-kernel.git 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 Acked-by: Bjorn Helgaas Cc: Yinghai Lu Cc: Jesse Barnes Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed