summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2022-12-19 11:22:15 +0300
committerDavid S. Miller <davem@davemloft.net>2022-12-19 15:23:39 +0300
commit10073399cb5e389ab275bd1c9df4b486a2f0c9d4 (patch)
tree53c61f496d10ad3e00c5fa3e03c961fda55ddd54 /net
parent98dbec0a0adc10d9441b6c29315406e275532eb3 (diff)
downloadlinux-10073399cb5e389ab275bd1c9df4b486a2f0c9d4.tar.xz
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: 610c32b2ce66 ("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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions