Re: Input: gamecon - use parallel port device model

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

 



On Fri, Oct 02, 2015 at 01:05:32AM +0300, Dan Carpenter wrote:
> Hello Sudip Mukherjee,
> 
> The patch a517e87c3dfc: "Input: gamecon - use parallel port device
> model" from Sep 29, 2015, leads to the following static checker
> warning:
> 
> 	drivers/input/joystick/gamecon.c:988 gc_attach()
> 	error: buffer overflow 'gc_base' 3 <= 5
> 
> drivers/input/joystick/gamecon.c
>    972  
>    973          for (i = 0; i < n_pads && i < GC_MAX_DEVICES; i++) {
>                                               ^^^^^^^^^^^^^^
Thanks Dan. This would have been an ugly mess. I checked my othher
patches and looks like they will also have the same mistake. I will send
the patch to fix this rightaway.

Thanks again.

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