Skip to contentSkip to conversation

Change a kzalloc parameter.

PATCH In review Tamara Diaconita 1 participant 1 message Feb 28, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/5 Change a kzalloc parameter.

---
 drivers/staging/media/cxd2099/cxd2099.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/cxd2099/cxd2099.c +1 -1
index bcf1c75..43b0507 100644
@@ -693,7 +693,7 @@ struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg,
 		return NULL;
 	}
 
-	ci = kzalloc(sizeof(struct cxd), GFP_KERNEL);
+	ci = kzalloc(sizeof(*ci), GFP_KERNEL);
 	if (!ci)
 		return NULL;
 
Signature · 1 line
2.9.3