diff options
author | 2015-11-05 16:25:50 -0500 | |
---|---|---|
committer | 2015-11-05 16:33:09 -0500 | |
commit | 84e86b98f6515aaeaac053b234be158b25457184 (patch) | |
tree | f85af33556534f38c9d6d202edc0560033ea04fc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bnxt_en: map CAG_REG_LEGACY_INT_STATUS_MASK to GRC window #4 (diff) | |
download | wireguard-linux-84e86b98f6515aaeaac053b234be158b25457184.tar.xz wireguard-linux-84e86b98f6515aaeaac053b234be158b25457184.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions