summaryrefslogtreecommitdiff
path: root/drivers/infiniband/core/cma.c
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>2022-01-16 02:02:36 +0300
committerJason Gunthorpe <jgg@nvidia.com>2022-01-28 18:12:15 +0300
commite5cce44aff3be9ad2cd52f63f35edbd706181d50 (patch)
tree56750baac5498441f569e29d77f18bf7f75cd9da /drivers/infiniband/core/cma.c
parent5f8f55b92edd621f056bdf09e572092849fabd83 (diff)
downloadlinux-e5cce44aff3be9ad2cd52f63f35edbd706181d50.tar.xz
IB/hfi1: Fix tstats alloc and dealloc
The tstats allocation is done in the accelerated ndo_init function but the allocation is not tested to succeed. The deallocation is not done in the accelerated ndo_uninit function. Resolve issues by testing for an allocation failure and adding the free_percpu in the uninit function. Fixes: aa0616a9bd52 ("IB/hfi1: switch to core handling of rx/tx byte/packet counters") Link: https://lore.kernel.org/r/1642287756-182313-5-git-send-email-mike.marciniszyn@cornelisnetworks.com Reviewed-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/core/cma.c')
0 files changed, 0 insertions, 0 deletions