From: Paul Durrant Date: Fri, 28 Mar 2014 11:39:07 +0000 (+0000) Subject: xen-netback: BUG_ON in xenvif_rx_action() not catching overflow X-Git-Tag: v3.15-rc1~113^2~17^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1425c7a4e8d3d2eebf308bcbdc3fa3c1247686b4;p=pandora-kernel.git xen-netback: BUG_ON in xenvif_rx_action() not catching overflow The BUG_ON to catch ring overflow in xenvif_rx_action() makes the assumption that meta_slots_used == ring slots used. This is not necessarily the case for GSO packets, because the non-prefix GSO protocol consumes one more ring slot than meta-slot for the 'extra_info'. This patch changes the test to actually check ring slots. Signed-off-by: Paul Durrant Cc: Ian Campbell Cc: Wei Liu Cc: Sander Eikelenboom Signed-off-by: David S. Miller --- Reading git-diff-tree failed