Skip to content
Permalink
Browse files

net: ethernet: mgmt: Fix Qav deltaBandwith check

As the value type is unsigned int, it cannot be <0.

Coverity-CID: 187063
Fixes #9002

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar authored and nashif committed Jul 19, 2018
1 parent 7f0432a commit 408a580644e1f15a0d8ff7f5854fbe03651ba57c
Showing with 1 addition and 2 deletions.
  1. +1 −2 subsys/net/l2/ethernet/ethernet_mgmt.c
@@ -99,8 +99,7 @@ static int ethernet_set_config(u32_t mgmt_request,
return -ENOTSUP;
}

if (params->qav_queue_param.delta_bandwidth < 0
|| params->qav_queue_param.delta_bandwidth > 100) {
if (params->qav_queue_param.delta_bandwidth > 100) {
return -EINVAL;
}

0 comments on commit 408a580

Please sign in to comment.
You can’t perform that action at this time.