X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Finput%2Fpower.c;fp=drivers%2Finput%2Fpower.c;h=bfc5c63ebffe2a018ffeae99ebe23fc2669983bf;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=51a519e24b6d07bd146206d47cd1293719dedb48;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/input/power.c b/drivers/input/power.c index 51a519e24..bfc5c63eb 100644 --- a/drivers/input/power.c +++ b/drivers/input/power.c @@ -28,6 +28,7 @@ */ #include +#include #include #include #include @@ -102,8 +103,9 @@ static struct input_handle *power_connect(struct input_handler *handler, { 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;