Re: [PATCH rdma-next 3/4] RDMA/mthca: Clear QP objects during their allocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 09, 2019 at 07:22:51PM +0000, Parav Pandit wrote:
>
>
> > -----Original Message-----
> > From: linux-rdma-owner@xxxxxxxxxxxxxxx <linux-rdma-
> > owner@xxxxxxxxxxxxxxx> On Behalf Of Leon Romanovsky
> > Sent: Wednesday, January 9, 2019 12:16 PM
> > To: Doug Ledford <dledford@xxxxxxxxxx>; Jason Gunthorpe
> > <jgg@xxxxxxxxxxxx>
> > Cc: Leon Romanovsky <leonro@xxxxxxxxxxxx>; RDMA mailing list <linux-
> > rdma@xxxxxxxxxxxxxxx>
> > Subject: [PATCH rdma-next 3/4] RDMA/mthca: Clear QP objects during their
> > allocation
> >
> > From: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> >
> > As part of audit process to update drivers to use rdma_restrack_add()
> > ensure that QP objects is cleared before access.
> >
> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> > ---
> >  drivers/infiniband/hw/mthca/mthca_provider.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c
> > b/drivers/infiniband/hw/mthca/mthca_provider.c
> > index cf5d1e6ff77d..3493be39637c 100644
> > --- a/drivers/infiniband/hw/mthca/mthca_provider.c
> > +++ b/drivers/infiniband/hw/mthca/mthca_provider.c
> > @@ -534,7 +534,7 @@ static struct ib_qp *mthca_create_qp(struct ib_pd
> > *pd,
> >  	{
> >  		struct mthca_ucontext *context;
> >
> > -		qp = kmalloc(sizeof *qp, GFP_KERNEL);
> > +		qp = kzalloc(sizeof(*qp), GFP_KERNEL);
> >  		if (!qp)
> >  			return ERR_PTR(-ENOMEM);
> >
> > @@ -600,7 +600,7 @@ static struct ib_qp *mthca_create_qp(struct ib_pd
> > *pd,
> >  		if (udata)
> >  			return ERR_PTR(-EINVAL);
> >
> > -		qp = kmalloc(sizeof (struct mthca_sqp), GFP_KERNEL);
> > +		qp = kzalloc(sizeof(struct mthca_sqp), GFP_KERNEL);
> >  		if (!qp)
> >  			return ERR_PTR(-ENOMEM);
> >
> > --
> > 2.19.1
>
> I sent this patch a while back but didn't show up in patchworks.
> Can you please add below log information [1] and tags [2]?

No problem, I sent v1 of this patch.

Thanks

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux