From: Clemens Ladisch Date: Mon, 25 Oct 2010 09:42:42 +0000 (+0200) Subject: firewire: ohci: avoid reallocation of AR buffers X-Git-Tag: v2.6.37-rc2~86^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=837596a61ba8f9bb53bb7aa27d17328ff9b2bcd5;p=pandora-kernel.git firewire: ohci: avoid reallocation of AR buffers Freeing an AR buffer page just to allocate a new page immediately afterwards is not only a pointless effort but also dangerous because the allocation can fail, which would result in an oops later. Split ar_context_add_page() into two functions so that we can reuse the old page directly. Signed-off-by: Clemens Ladisch Tested-by: Maxim Levitsky Signed-off-by: Stefan Richter --- Reading git-diff-tree failed