mirror_ubuntu-kernels/drivers/net/ethernet/microchip/vcap
Horatiu Vultur 10073399cb net: microchip: vcap: Fix initialization of value and mask
Fix the following smatch warning:

smatch warnings:
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c:103 vcap_debugfs_show_rule_keyfield() error: uninitialized symbol 'value'.
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.c:106 vcap_debugfs_show_rule_keyfield() error: uninitialized symbol 'mask'.

In case the vcap field was VCAP_FIELD_U128 and the key was different
than IP6_S/DIP then the value and mask were not initialized, therefore
initialize them.

Fixes: 610c32b2ce ("net: microchip: vcap: Add vcap_get_rule")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Saeed Mahameed <saeed@kernel.org>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-12-19 12:23:39 +00:00
..
Kconfig net: microchip: sparx5: Add VCAP debugfs KUNIT test 2022-11-21 11:33:02 +00:00
Makefile net: microchip: sparx5: Add VCAP debugFS support 2022-11-21 11:33:02 +00:00
vcap_ag_api.h net: microchip: vcap: Extend vcap with lan966x 2022-11-29 13:08:23 +01:00
vcap_api_client.h net: microchip: vcap: Add vcap_rule_get_key_u32 2022-12-06 13:26:43 +01:00
vcap_api_debugfs_kunit.c net: microchip: sparx5: Support for displaying a list of keysets 2022-11-25 09:42:14 +00:00
vcap_api_debugfs.c net: microchip: vcap: Fix initialization of value and mask 2022-12-19 12:23:39 +00:00
vcap_api_debugfs.h net: microchip: sparx5: Add VCAP debugFS support 2022-11-21 11:33:02 +00:00
vcap_api_kunit.c net: microchip: sparx5: Add VCAP filter keys KUNIT test 2022-11-25 09:42:14 +00:00
vcap_api_private.h net: microchip: vcap: Add vcap_get_rule 2022-12-06 13:26:43 +01:00
vcap_api.c net: microchip: vcap: Remove unneeded semicolons 2022-12-06 20:38:57 -08:00
vcap_api.h net: microchip: vcap: Change how the rule id is generated 2022-11-30 20:46:13 -08:00
vcap_model_kunit.c net: microchip: sparx5: Adding KUNIT test VCAP model 2022-10-24 10:37:43 +01:00
vcap_model_kunit.h net: microchip: sparx5: Adding KUNIT test VCAP model 2022-10-24 10:37:43 +01:00