X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Finput%2Fevbug.c;fp=drivers%2Finput%2Fevbug.c;h=d7828936fd8f5edf49145e68bde6272628cfcac9;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=07358fb51b82aacf8e7cb1b9fbe9f2cc943eb455;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/input/evbug.c b/drivers/input/evbug.c index 07358fb51..d7828936f 100644 --- a/drivers/input/evbug.c +++ b/drivers/input/evbug.c @@ -49,8 +49,9 @@ static struct input_handle *evbug_connect(struct input_handler *handler, struct { struct input_handle *handle; - if (!(handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL))) + if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL))) return NULL; + memset(handle, 0, sizeof(struct input_handle)); handle->dev = dev; handle->handler = handler;