diff options
author | Horatiu Vultur <[email protected]> | 2022-12-19 09:22:15 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-12-19 12:23:39 +0000 |
commit | 10073399cb5e389ab275bd1c9df4b486a2f0c9d4 (patch) | |
tree | 53c61f496d10ad3e00c5fa3e03c961fda55ddd54 /lib/netdev-notifier-error-inject.c | |
parent | 98dbec0a0adc10d9441b6c29315406e275532eb3 (diff) |
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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Reviewed-by: Saeed Mahameed <[email protected]>
Signed-off-by: Horatiu Vultur <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions