summaryrefslogtreecommitdiff
path: root/include/linux/scx200.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-09-25 11:49:13 -0500
committerSaeed Mahameed <saeedm@nvidia.com>2020-09-30 21:26:31 -0700
commitff7ea04ad579c1f5f5aed73d2d5dc13314d25c75 (patch)
tree61e2957826d78530fe8e8aa6963c1ed79b02f46a /include/linux/scx200.h
parent7b2b16ee54cc08e268ddae59152cc99ec8275e1c (diff)
net/mlx5e: Fix potential null pointer dereference
Calls to kzalloc() and kvzalloc() should be null-checked in order to avoid any potential failures. In this case, a potential null pointer dereference. Fix this by adding null checks for _parse_attr_ and _flow_ right after allocation. Addresses-Coverity-ID: 1497154 ("Dereference before null check") Fixes: c620b772152b ("net/mlx5: Refactor tc flow attributes structure") Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include/linux/scx200.h')
0 files changed, 0 insertions, 0 deletions