[PATCH v2 03/24] staging: ks7010:

Greg Kroah-Hartman gregkh at linuxfoundation.org
Sat Apr 8 10:47:01 UTC 2017


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.carpenter at oracle.com>
> Signed-off-by: Tobin C. Harding <me at tobin.cc>
> ---
>  drivers/staging/ks7010/ks7010_sdio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

No subject at all???


More information about the devel mailing list