[rds-devel] [PATCH] RDS: IB: NULL dereference on error in rds_ib_alloc_frmr()

santosh.shilimkar at oracle.com santosh.shilimkar at oracle.com
Wed Jun 14 10:18:25 PDT 2017


On 6/14/17 3:39 AM, Dan Carpenter wrote:
> We accidentally return ERR_PTR(0) if ib_alloc_mr() fails.  The caller
> is expecting error pointers so it results in a NULL dereference.
>
> Fixes: 1659185fb4d0 ("RDS: IB: Support Fastreg MR (FRMR) memory registration mode")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
>
Thanks Dan for fix.

Acked-by: Santosh Shilimkar <santosh.shilimkar at oracle.com>

You haven't copied netdev. Can you please resend the patch
with my ack on netdev so that Dave can pick it up.







More information about the rds-devel mailing list