Re: [PATCH v6] input: tegra-kbc - Add tegra keyboard driver

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

 



On Wed, Jan 19, 2011 at 02:30:07PM -0800, riyer@xxxxxxxxxx wrote:
> +
> +static void tegra_kbc_report_keys(struct tegra_kbc *kbc)
> +{
> +	unsigned char scancodes[KBC_MAX_KPENT];
> +	unsigned short keycodes[KBC_MAX_KPENT];
> +	u32 val = 0;
> +	unsigned int i;
> +	unsigned int num_down = 0;
> +	unsigned long flags;
> +
> +	spin_lock_irqsave(&kbc->lock, flags);
> +	for (i = 0; i < KBC_MAX_KPENT * 4; i++) {

This will cause going beyond scancodes[] and keycodes[] and stomping on
your stack...

-- 
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