aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorLee Trager <[email protected]>2025-02-28 19:15:27 +0000
committerJakub Kicinski <[email protected]>2025-03-05 01:03:26 +0000
commite5cf5107c9e4286377d9adae114e524787cbe104 (patch)
tree064869ec2ed9e382064fd9318aa376d6637046b1 /lib/crypto/mpi/mpi-cmp.c
parenteth: fbnic: Prepend TSENE FW fields with FBNIC_FW (diff)
downloadkernel-e5cf5107c9e4286377d9adae114e524787cbe104.tar.gz
kernel-e5cf5107c9e4286377d9adae114e524787cbe104.zip
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions