]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commitdiff
netback: Fix BUG_ON() on page-flip receive path which would always
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 5 Feb 2008 10:05:19 +0000 (10:05 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 5 Feb 2008 10:05:19 +0000 (10:05 +0000)
trigger and crash the kernbel.
Tracked down by Joakim Dahlstedt <jda@bea.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
drivers/xen/netback/netback.c

index 0eecf44ce53c4da2d8fb7ba22bebdc72466ff27a..79ce9ad0ce6813ff21099c2a4db78b7211c9f76f 100644 (file)
@@ -607,7 +607,7 @@ static void net_rx_action(unsigned long unused)
 
        npo.mmu_mcl = npo.mcl_prod;
        if (npo.mcl_prod) {
-               BUG_ON(!xen_feature(XENFEAT_auto_translated_physmap));
+               BUG_ON(xen_feature(XENFEAT_auto_translated_physmap));
                BUG_ON(npo.mmu_prod > ARRAY_SIZE(rx_mmu));
                mcl = npo.mcl + npo.mcl_prod++;