|
|
@@ -533,7 +533,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);
|
|
|
|
|
|
@@ -599,7 +599,7 @@ static struct ib_qp *mthca_create_qp(struct ib_pd *pd,
|
|
|
if (pd->uobject)
|
|
|
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);
|
|
|
|