diff options
author | Michael Chan <mchan@broadcom.com> | 2015-11-05 16:25:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-05 16:33:09 -0500 |
commit | 84e86b98f6515aaeaac053b234be158b25457184 (patch) | |
tree | f85af33556534f38c9d6d202edc0560033ea04fc /.mailmap | |
parent | 11809490ac17810cff90c12e9f2f3e0303a72121 (diff) | |
download | linux-84e86b98f6515aaeaac053b234be158b25457184.tar.bz2 |
bnxt_en: Fix comparison of u16 sw_id against negative value.
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 <dan.carpenter@oracle.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions