On Mon, Feb 27, 2017 at 4:21 PM, Greg Kroah-Hartman
wrote:
> On Sat, Feb 18, 2017 at 11:52:37AM +0800, Man Choy wrote:
>> Fix following checks:
>>
>> CHECK: Avoid crashing the kernel - try using WARN_ON & recovery code rather
>> than BUG() or BUG_ON()
>> + BUG_ON((index+2) >= BCM2048_MAX_RD
On Sat, Feb 18, 2017 at 11:52:37AM +0800, Man Choy wrote:
> Fix following checks:
>
> CHECK: Avoid crashing the kernel - try using WARN_ON & recovery code rather
> than BUG() or BUG_ON()
> + BUG_ON((index+2) >= BCM2048_MAX_RDS_RT);
>
> CHECK: spaces preferred around that '+' (ctx:VxV)
> +
Fix following checks:
CHECK: Avoid crashing the kernel - try using WARN_ON & recovery code rather
than BUG() or BUG_ON()
+ BUG_ON((index+2) >= BCM2048_MAX_RDS_RT);
CHECK: spaces preferred around that '+' (ctx:VxV)
+ BUG_ON((index+2) >= BCM2048_MAX_RDS_RT);
^
CHE