diff options
author | Amit Cohen <amcohen@nvidia.com> | 2024-01-26 19:58:31 +0100 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-30 15:47:36 +0100 |
commit | 1267f7223bec186dc26ef4e6075496c6217355de (patch) | |
tree | db93be129f9338ae168c73a6593cee01952c7845 /net/unix/af_unix.c | |
parent | be2f16a994f09b7f95db57f106520dd5e2585050 (diff) |
mlxsw: Use refcount_t for reference counting
mlxsw driver uses 'unsigned int' for reference counters in several
structures. Instead, use refcount_t type which allows us to catch overflow
and underflow issues. Change the type of the counters and use the
appropriate API.
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions