Re: [PATCH net 4/5] bnxt_en: Fix comparison of u16 sw_id against negative value.

2015-11-06 Thread Sergei Shtylyov
Hello. On 11/6/2015 12:25 AM, Michael Chan wrote: Assign the return value from bitmap_find_free_region() to an integer variable and check for negative error codes first, before assigning the bit ID to the unsigned sw_id field. Reported-by: Dan Carpenter Cc: Dan

Re: [PATCH net 4/5] bnxt_en: Fix comparison of u16 sw_id against negative value.

2015-11-06 Thread Michael Chan
On Fri, 2015-11-06 at 14:57 +0300, Sergei Shtylyov wrote: > Hello. > > On 11/6/2015 12:25 AM, Michael Chan wrote: > > > Assign the return value from bitmap_find_free_region() to an integer > > variable and check for negative error codes first, before assigning > > the bit ID to the unsigned

[PATCH net 4/5] bnxt_en: Fix comparison of u16 sw_id against negative value.

2015-11-05 Thread Michael Chan
Assign the return value from bitmap_find_free_region() to an integer variable and check for negative error codes first, before assigning the bit ID to the unsigned sw_id field. Reported-by: Dan Carpenter Cc: Dan Carpenter Signed-off-by: