From: Bjorn Helgaas Date: Tue, 26 Oct 2010 21:41:28 +0000 (-0600) Subject: resources: handle overflow when aligning start of available area X-Git-Tag: v2.6.37-rc1~62^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1862e31079149a52b6223776228c3aee493d4a7;p=pandora-kernel.git resources: handle overflow when aligning start of available area If tmp.start is near ~0, ALIGN(tmp.start) may overflow, which would make us think there's more available space than there really is. We would likely return something that conflicts with a previous resource, which would cause a failure when allocate_resource() requests the newly- allocated region. Reference: https://bugzilla.redhat.com/show_bug.cgi?id=646027 Reported-by: Fabrice Bellet Signed-off-by: Bjorn Helgaas Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed