From: Sooyoung Ha Date: Tue, 12 Jul 2016 05:59:27 +0000 (+0900) Subject: sensor: initialize the virtio sersor structure X-Git-Tag: submit/tizen/20161219.112149~5^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ee8d369e1bad2ee4139da5e65bf7a836a375249;p=sdk%2Femulator%2Femulator-kernel.git sensor: initialize the virtio sersor structure Change-Id: Id40ec6491ca92afa3bf31e4a8daaa236e1445082 Signed-off-by: Sooyoung Ha --- diff --git a/drivers/maru/sensors/maru_virtio_sensor.c b/drivers/maru/sensors/maru_virtio_sensor.c index 6bc38aad3f3b..3b7b06017a75 100644 --- a/drivers/maru/sensors/maru_virtio_sensor.c +++ b/drivers/maru/sensors/maru_virtio_sensor.c @@ -426,7 +426,7 @@ static int sensor_probe(struct virtio_device* dev) INFO("Sensor probe starts"); - vs = kmalloc(sizeof(struct virtio_sensor), GFP_KERNEL); + vs = kzalloc(sizeof(struct virtio_sensor), GFP_KERNEL); if (!vs) { ERR("failed to allocate sensor structure."); return -ENOMEM;