From: Phil Sutter Date: Wed, 12 Aug 2009 12:52:32 +0000 (+0000) Subject: korina: add error-handling to korina_alloc_ring X-Git-Tag: v2.6.32-rc1~703^2~376 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7010837a44813711b66d9e82e90f9641464e515d;p=pandora-kernel.git korina: add error-handling to korina_alloc_ring This also avoids a potential buffer overflow in case the very first receive descriptor fails to allocate, as an index of -1 would be used afterwards. Kudos to Roel Kluin for pointing this out and providing an initial patch. Signed-off-by: Phil Sutter Signed-off-by: David S. Miller --- Reading git-diff-tree failed