summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ionic/ionic_controlpath.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-09-01 17:00:39 +0200
committerLeon Romanovsky <leon@kernel.org>2025-09-11 02:18:35 -0400
commitf5b6b4639b3d999c507de349221c48af638c06dc (patch)
tree4bd6f2afcfbefeba4d8056c19cf33db4d2ae85bb /drivers/infiniband/hw/ionic/ionic_controlpath.c
parent2ed096dc41536ded233612ac9f308dcdefebd286 (diff)
RDMA/bnxt_re: Call strscpy() with correct size argument
In bnxt_re_register_ib(), strscpy() is called with the length of the source string rather than the size of the destination buffer. This is fine as long as the destination buffer is larger than the source string, but we should still use the destination buffer size instead to call strscpy() as intended. And since 'node_desc' has a fixed size, we can safely omit the size argument and let strscpy() infer it using sizeof(). Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20250901150038.227036-2-thorsten.blum@linux.dev Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/ionic/ionic_controlpath.c')
0 files changed, 0 insertions, 0 deletions