WSL2-Linux-Kernel/drivers/infiniband/hw
Joe Perches f068cb1db2 RDMA/usnic: Fix misuse of sysfs_emit_at
In commit e28bf1f03b ("RDMA: Convert various random sprintf sysfs _show
uses to sysfs_emit") I mistakenly used len = sysfs_emit_at to overwrite
the last trailing space of potentially multiple entry output.

Instead use a more common style by removing the trailing space from the
output formats and adding a prefixing space to the contination formats and
converting the final terminating output newline from the defective
	len = sysfs_emit_at(buf, len, "\n");
to the now appropriate and typical
	len += sysfs_emit_at(buf, len, "\n");

Fixes: e28bf1f03b ("RDMA: Convert various random sprintf sysfs _show uses to sysfs_emit")
Link: https://lore.kernel.org/r/5eb794b9c9bca0494d94b2b209f1627fa4e7b555.camel@perches.com
Reported-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-01-19 20:27:29 -04:00
..
bnxt_re RDMA/bnxt_re: Fix max_qp_wrs reported 2020-12-07 15:43:42 -04:00
cxgb4 RDMA/cxgb4: Fix the reported max_recv_sge value 2021-01-18 17:05:46 -04:00
efa RDMA 5.11 pull request 2020-12-16 13:42:26 -08:00
hfi1 RDMA 5.11 pull request 2020-12-16 13:42:26 -08:00
hns RDMA/hns: Use mutex instead of spinlock for ida allocation 2021-01-19 20:20:13 -04:00
i40iw RDMA/i40iw: Replace atomic_add_return(1, ..) 2020-12-07 15:40:23 -04:00
mlx4 RDMA/mlx4: Remove bogus dev_base_lock usage 2020-12-10 16:58:25 -04:00
mlx5 Revert "RDMA/mlx5: Fix devlink deadlock on net namespace deletion" 2021-01-19 20:22:59 -04:00
mthca Linux 5.10-rc6 2020-12-01 20:40:50 -04:00
ocrdma RDMA/ocrdma: Fix use after free in ocrdma_dealloc_ucontext_pd() 2021-01-07 16:37:11 -04:00
qedr RDMA 5.11 pull request 2020-12-16 13:42:26 -08:00
qib IB/qib: Use dma_set_mask_and_coherent to simplify code 2020-11-23 16:37:20 -04:00
usnic RDMA/usnic: Fix misuse of sysfs_emit_at 2021-01-19 20:27:29 -04:00
vmw_pvrdma RDMA/vmw_pvrdma: Fix network_hdr_type reported in WC 2021-01-19 20:17:27 -04:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00