aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorJoe Perches <[email protected]>2021-01-16 00:36:50 +0000
committerJason Gunthorpe <[email protected]>2021-01-20 00:27:29 +0000
commitf068cb1db2cb40c9782874df7b08c684106cf609 (patch)
tree4808c50c2ba6a4a9fc3bd0be1e0e177d69950093 /net/switchdev/switchdev.c
parentRevert "RDMA/mlx5: Fix devlink deadlock on net namespace deletion" (diff)
downloadkernel-f068cb1db2cb40c9782874df7b08c684106cf609.tar.gz
kernel-f068cb1db2cb40c9782874df7b08c684106cf609.zip
RDMA/usnic: Fix misuse of sysfs_emit_at
In commit e28bf1f03b01 ("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: e28bf1f03b01 ("RDMA: Convert various random sprintf sysfs _show uses to sysfs_emit") Link: https://lore.kernel.org/r/[email protected] Reported-by: James Bottomley <[email protected]> Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions