|
@@ -1,7 +1,7 @@
|
|
|
/*******************************************************************************
|
|
|
*
|
|
|
* Intel Ethernet Controller XL710 Family Linux Driver
|
|
|
- * Copyright(c) 2013 - 2014 Intel Corporation.
|
|
|
+ * Copyright(c) 2013 - 2017 Intel Corporation.
|
|
|
*
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
* under the terms and conditions of the GNU General Public License,
|
|
@@ -390,6 +390,8 @@ static void i40e_parse_cee_app_tlv(struct i40e_cee_feat_tlv *tlv,
|
|
|
|
|
|
if (!dcbcfg->numapps)
|
|
|
return;
|
|
|
+ if (dcbcfg->numapps > I40E_DCBX_MAX_APPS)
|
|
|
+ dcbcfg->numapps = I40E_DCBX_MAX_APPS;
|
|
|
|
|
|
for (i = 0; i < dcbcfg->numapps; i++) {
|
|
|
u8 up, selector;
|