Revision a6f74333548f56afb413fc928ae1aefc4fe7608f authored by Dmytro Linkin on 25 August 2021, 14:51:26 UTC, committed by Saeed Mahameed on 20 October 2021, 17:42:49 UTC
Dan Carpenter report: The patch f47e04eb96e0: "net/mlx5: E-switch, Allow setting share/max tx rate limits of rate groups" from May 31, 2021, leads to the following Smatch static checker warning: drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c:483 esw_qos_create_rate_group() warn: passing zero to 'ERR_PTR' If min rate normalization failed then error code may be overwritten to 0 if scheduling element destruction succeed. Ignore this value and always return initial one. Fixes: f47e04eb96e0 ("net/mlx5: E-switch, Allow setting share/max tx rate limits of rate groups") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
1 parent 14fe247
File | Mode | Size |
---|---|---|
certs | ||
.gitignore | -rw-r--r-- | 70 bytes |
Kconfig | -rw-r--r-- | 7.5 KB |
Makefile | -rw-r--r-- | 2.1 KB |
ap.c | -rw-r--r-- | 1.3 KB |
chan.c | -rw-r--r-- | 33.7 KB |
core.c | -rw-r--r-- | 40.0 KB |
core.h | -rw-r--r-- | 17.9 KB |
debugfs.c | -rw-r--r-- | 2.8 KB |
debugfs.h | -rw-r--r-- | 339 bytes |
ethtool.c | -rw-r--r-- | 843 bytes |
ibss.c | -rw-r--r-- | 12.3 KB |
lib80211.c | -rw-r--r-- | 6.6 KB |
lib80211_crypt_ccmp.c | -rw-r--r-- | 10.7 KB |
lib80211_crypt_tkip.c | -rw-r--r-- | 19.2 KB |
lib80211_crypt_wep.c | -rw-r--r-- | 6.0 KB |
mesh.c | -rw-r--r-- | 8.0 KB |
mlme.c | -rw-r--r-- | 25.6 KB |
nl80211.c | -rw-r--r-- | 492.3 KB |
nl80211.h | -rw-r--r-- | 4.8 KB |
ocb.c | -rw-r--r-- | 1.8 KB |
of.c | -rw-r--r-- | 3.4 KB |
pmsr.c | -rw-r--r-- | 17.7 KB |
radiotap.c | -rw-r--r-- | 11.8 KB |
rdev-ops.h | -rw-r--r-- | 39.5 KB |
reg.c | -rw-r--r-- | 112.1 KB |
reg.h | -rw-r--r-- | 7.2 KB |
scan.c | -rw-r--r-- | 83.2 KB |
sme.c | -rw-r--r-- | 35.5 KB |
sysfs.c | -rw-r--r-- | 4.0 KB |
sysfs.h | -rw-r--r-- | 222 bytes |
trace.c | -rw-r--r-- | 102 bytes |
trace.h | -rw-r--r-- | 100.0 KB |
util.c | -rw-r--r-- | 53.8 KB |
wext-compat.c | -rw-r--r-- | 41.3 KB |
wext-compat.h | -rw-r--r-- | 2.3 KB |
wext-core.c | -rw-r--r-- | 31.6 KB |
wext-priv.c | -rw-r--r-- | 6.9 KB |
wext-proc.c | -rw-r--r-- | 3.6 KB |
wext-sme.c | -rw-r--r-- | 8.8 KB |
wext-spy.c | -rw-r--r-- | 6.5 KB |
Computing file changes ...