staging: comedi: 8255: use kzalloc to allocate the private data
PATCH 10/15 staging: comedi: 8255: use kzalloc to allocate the private data
Signed-off-by H Hartley Sweeten <[email protected]>
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
@@ -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