aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/i2o/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/message/i2o/device.c')
-rw-r--r--drivers/message/i2o/device.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/message/i2o/device.c b/drivers/message/i2o/device.c
index 773b0a4cfe21..34976b26b265 100644
--- a/drivers/message/i2o/device.c
+++ b/drivers/message/i2o/device.c
@@ -195,12 +195,10 @@ static struct i2o_device *i2o_device_alloc(void)
195{ 195{
196 struct i2o_device *dev; 196 struct i2o_device *dev;
197 197
198 dev = kmalloc(sizeof(*dev), GFP_KERNEL); 198 dev = kzalloc(sizeof(*dev), GFP_KERNEL);
199 if (!dev) 199 if (!dev)
200 return ERR_PTR(-ENOMEM); 200 return ERR_PTR(-ENOMEM);
201 201
202 memset(dev, 0, sizeof(*dev));
203
204 INIT_LIST_HEAD(&dev->list); 202 INIT_LIST_HEAD(&dev->list);
205 init_MUTEX(&dev->lock); 203 init_MUTEX(&dev->lock);
206 204