[ofa-general] [PATCH RFC] rds: add iwarp support

Olaf Kirch olaf.kirch at oracle.com
Fri Jul 4 01:59:54 PDT 2008


On Thursday 03 July 2008 23:34:12 Jon Mason wrote:

> +	ibmr->fastreg_mr = ib_alloc_fast_reg_mr(rds_iwarpdev->pd, ibmr->page_list->max_page_list_len);
> +	if (IS_ERR(ibmr->page_list)) {
> +		err = PTR_ERR(ibmr->fastreg_mr);
> +		ibmr->fastreg_mr = NULL;
> +		printk(KERN_WARNING "RDS/IWARP: ib_alloc_fast_reg_mr failed (err=%d)\n", err);
> +		goto out_no_cigar;
> +	}

You actually want to check IS_ERR(ibmr->fastreg_mr) here.

Olaf
-- 
Olaf Kirch  |  --- o --- Nous sommes du soleil we love when we play
okir at lst.de |    / | \   sol.dhoop.naytheet.ah kin.ir.samse.qurax



More information about the general mailing list