sunvnet: allow admin to set sunvnet MTU
[pandora-kernel.git] / arch / sparc / kernel / ldc.c
index 66dacd5..0af28b9 100644 (file)
@@ -2159,7 +2159,7 @@ int ldc_map_single(struct ldc_channel *lp,
        state.pte_idx = (base - iommu->page_table);
        state.nc = 0;
        fill_cookies(&state, (pa & PAGE_MASK), (pa & ~PAGE_MASK), len);
-       BUG_ON(state.nc != 1);
+       BUG_ON(state.nc > ncookies);
 
        return state.nc;
 }