Skip to contentSkip to conversation

staging: comedi: 8255: use kzalloc to allocate the private data

PATCH In review H Hartley Sweeten 1 participant 1 message Jun 13, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 10/15 staging: comedi: 8255: use kzalloc to allocate the private data

Cc Ian Abbott <[email protected]>
Cc Frank Mori Hess <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/comedi/drivers/8255.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/comedi/drivers/8255.c +1 -1
index 4cdd007..f6ea493 100644
@@ -309,7 +309,7 @@ int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s,
 {
 	struct subdev_8255_private *spriv;
 
-	spriv = kmalloc(sizeof(*spriv), GFP_KERNEL);
+	spriv = kzalloc(sizeof(*spriv), GFP_KERNEL);
 	if (!spriv)
 		return -ENOMEM;
 
Signature · 1 line
1.7.7