diff options
author | Lee Trager <lee@trager.us> | 2025-02-28 11:15:27 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-04 17:03:26 -0800 |
commit | e5cf5107c9e4286377d9adae114e524787cbe104 (patch) | |
tree | 064869ec2ed9e382064fd9318aa376d6637046b1 /drivers/fpga/fpga-bridge.c | |
parent | 56bcc6ecff8fdc06258c637226986ed522027ca5 (diff) |
eth: fbnic: Update fbnic_tlv_attr_get_string() to work like nla_strscpy()
Allow fbnic_tlv_attr_get_string() to return an error code. In the event the
source mailbox attribute is missing return -EINVAL. Like nla_strscpy() return
-E2BIG when the source string is larger than the destination string. In this
case the amount of data copied is equal to dstsize.
Signed-off-by: Lee Trager <lee@trager.us>
Link: https://patch.msgid.link/20250228191935.3953712-3-lee@trager.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions