----- Original Message -----
> From: "CAI Qian" <[email protected]>
> To: "Roland Dreier" <[email protected]>, "Sean Hefty" <[email protected]>,
> "Hal Rosenstock"
> <[email protected]>
> Cc: [email protected], "Tatyana Nikolova" <[email protected]>
> Sent: Friday, December 14, 2012 5:53:51 PM
> Subject: [PATCH] RDMA/nes: Fix for crash when registering zero length MR for
> CQ
>
> Roland, Sean, Hal, please see if it is possible to provide an
> ACK here in order for this to get into the stable releases.
any ACK/NACK here too?
>
> From: Tatyana Nikolova <[email protected]>
> Commit: 7d9c199a55200c9b9fcad08e150470d02fb385be
> Stable-trees: 3.7.x, 3.6.x, 3.4.x, 3.0.x
>
> Signed-off-by: Tatyana Nikolova <[email protected]>
> Signed-off-by: Roland Dreier <[email protected]>
> Signed-off-by: CAI Qian <[email protected]>
>
> diff --git a/drivers/infiniband/hw/nes/nes_verbs.c
> b/drivers/infiniband/hw/nes/nes_verbs.c
> index c47ec25..07e4fba 100644
> --- a/drivers/infiniband/hw/nes/nes_verbs.c
> +++ b/drivers/infiniband/hw/nes/nes_verbs.c
> @@ -2561,6 +2561,11 @@ static struct ib_mr *nes_reg_user_mr(struct
> ib_pd *pd, u64 start, u64 length,
> return ibmr;
> case IWNES_MEMREG_TYPE_QP:
> case IWNES_MEMREG_TYPE_CQ:
> + if (!region->length) {
> + nes_debug(NES_DBG_MR, "Unable to register zero
> length region for
> CQ\n");
> + ib_umem_release(region);
> + return ERR_PTR(-EINVAL);
> + }
> nespbl = kzalloc(sizeof(*nespbl), GFP_KERNEL);
> if (!nespbl) {
> nes_debug(NES_DBG_MR, "Unable to allocate
> PBL\n");
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html