On Thu, Jun 03, 2010 at 10:01:01AM +0200, Henrik Rydberg wrote: > > + evdev->bufsize = evdev_compute_buffer_size(dev); > + evdev->buffer = kzalloc(evdev->bufsize * sizeof(struct input_event), > + GFP_KERNEL); kcalloc(). > + if (!evdev->buffer) { > + error = -ENOMEM; > + goto err_free_evdev; > + } > + > error = input_register_handle(&evdev->handle); > if (error) > goto err_free_evdev; -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html