[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160725.174826.2146830871661675561.davem@davemloft.net>
Date: Mon, 25 Jul 2016 17:48:26 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: arvind.yadav.cs@...il.com
Cc: zajec5@...il.com, leoli@...escale.com, qiang.zhao@...escale.com,
scottwood@...escale.com, viresh.kumar@...aro.org,
akpm@...ux-foundation.org, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
linux@...ck-us.net, arnd@...db.de
Subject: Re: [v3] UCC_GETH/UCC_FAST: Use IS_ERR_VALUE_U32 API to avoid
IS_ERR_VALUE abuses.
From: Arvind Yadav <arvind.yadav.cs@...il.com>
Date: Sat, 23 Jul 2016 23:35:51 +0530
> However, anything that passes an 'unsigned short' or 'unsigned int'
> argument into IS_ERR_VALUE() is guaranteed to be broken, as are
> 8-bit integers and types that are wider than 'unsigned long'.
...
> Passing value in IS_ERR_VALUE() is wrong, as they pass an
> 'unsigned int' into a function that takes an 'unsigned long'
> argument.This happens to work because the type is sign-extended
> on 64-bit architectures before it gets converted into an
> unsigned type.
This commit log message is a complete mess, you're saying exactly
the same thing over and over again.
Also your Subject line is not formatted correctly, do not list
the subsystem prefix in ALL CAPS. Just plain "ucc_geth/ucc_fast: "
would be fine.
Powered by blists - more mailing lists