aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorYotam Gigi <[email protected]>2016-11-11 16:34:25 +0100
committerDavid S. Miller <[email protected]>2016-11-13 12:51:00 -0500
commit2d644d4c7506646f9c4a2afceb7fd5f030bc0c9f (patch)
treef00e19c06fdbd7dccfad6e1223ed6bb451d849f6 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parenta055450a3340fc0d9a6b39257e6710f121d92385 (diff)
mlxsw: spectrum: Fix refcount bug on span entries
When binding port to a newly created span entry, its refcount is initialized to zero even though it has a bound port. That leads to unexpected behaviour when the user tries to delete that port from the span entry. Fix this by initializing the reference count to 1. Also add a warning to put function. Fixes: 763b4b70afcd ("mlxsw: spectrum: Add support in matchall mirror TC offloading") Signed-off-by: Yotam Gigi <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions