On Wed, Apr 05, 2017 at 10:42:06AM +1000, Tobin C. Harding wrote:
> Length undergoes type conversion when passed (indirectly) as an
> argument for parameter of type 'unsigned int'. If length is negative
> this is a bug (the value after conversion is large).
> 
> Declare 'length' to be of type unsigned instead of type signed.
> 
> Reported-by: Dan Carpenter <dan.carpen...@oracle.com>
> Signed-off-by: Tobin C. Harding <m...@tobin.cc>
> ---
>  drivers/staging/ks7010/ks7010_sdio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

No subject at all???
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to