summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/softdog.c
diff options
context:
space:
mode:
authorAya Levin <ayal@nvidia.com>2021-05-25 15:35:25 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2021-06-01 18:30:19 -0700
commitd8ec92005f806dfa7524e9171eca707c0bb1267e (patch)
treea95c03d6906e2e5513b899a64249e5f27a47b849 /drivers/watchdog/softdog.c
parentb000372627ce9dbbe641dafbf40db0718276ab77 (diff)
downloadlinux-d8ec92005f806dfa7524e9171eca707c0bb1267e.tar.gz
linux-d8ec92005f806dfa7524e9171eca707c0bb1267e.tar.bz2
linux-d8ec92005f806dfa7524e9171eca707c0bb1267e.zip
net/mlx5e: Fix incompatible casting
Device supports setting of a single fec mode at a time, enforce this by bitmap_weight == 1. Input from fec command is in u32, avoid cast to unsigned long and use bitmap_from_arr32 to populate bitmap safely. Fixes: 4bd9d5070b92 ("net/mlx5e: Enforce setting of a single FEC mode") Signed-off-by: Aya Levin <ayal@nvidia.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/watchdog/softdog.c')
0 files changed, 0 insertions, 0 deletions