mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
RDMA/ionic: Fix typo in format string
Applying the corrupted patch by hand mangled the format string, put the s
in the right place.
Cc: stable@vger.kernel.org
Fixes: 654a27f255 ("RDMA/ionic: bound node_desc sysfs read with %.64s")
Link: https://patch.msgid.link/r/1-v1-41f3135e5565+9d2-rdma_ai_fixes1_jgg@nvidia.com
Reported-by: Brad Spengler <brad.spengler@opensrcsec.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
@@ -185,7 +185,7 @@ static ssize_t hca_type_show(struct device *device,
|
||||
struct ionic_ibdev *dev =
|
||||
rdma_device_to_drv_device(device, struct ionic_ibdev, ibdev);
|
||||
|
||||
return sysfs_emit(buf, "%s.64\n", dev->ibdev.node_desc);
|
||||
return sysfs_emit(buf, "%.64s\n", dev->ibdev.node_desc);
|
||||
}
|
||||
static DEVICE_ATTR_RO(hca_type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user