|
@@ -430,9 +430,9 @@ static int __devinit xencons_probe(struct xenbus_device *dev,
|
|
if (devid == 0)
|
|
if (devid == 0)
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
|
|
|
- info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL | __GFP_ZERO);
|
|
|
|
|
|
+ info = kzalloc(sizeof(struct xencons_info), GFP_KERNEL);
|
|
if (!info)
|
|
if (!info)
|
|
- goto error_nomem;
|
|
|
|
|
|
+ return -ENOMEM;
|
|
dev_set_drvdata(&dev->dev, info);
|
|
dev_set_drvdata(&dev->dev, info);
|
|
info->xbdev = dev;
|
|
info->xbdev = dev;
|
|
info->vtermno = xenbus_devid_to_vtermno(devid);
|
|
info->vtermno = xenbus_devid_to_vtermno(devid);
|