Messages in this thread |  | | | Date | Sun, 7 Nov 2010 23:51:57 +0000 | | From | Alan Cox <> | | Subject | Re: [PATCH] input: spi: Driver for SPI data stream driven vibrator |
| |
> + datalen = p->custom_len * sizeof(p->custom_data[0]);
signed
> + if (datalen > MAX_EFFECT_SIZE) {
unsigned
> + memcpy(einfo->buf, p->custom_data, datalen);
ungood
|  |