Re: [PATCH 3/4] input: evdev: Convert to dynamic event buffer (rev3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux