diff options
| author | Lee Trager <[email protected]> | 2025-02-28 19:15:27 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-05 01:03:26 +0000 |
| commit | e5cf5107c9e4286377d9adae114e524787cbe104 (patch) | |
| tree | 064869ec2ed9e382064fd9318aa376d6637046b1 /lib/crypto/mpi/mpi-cmp.c | |
| parent | eth: fbnic: Prepend TSENE FW fields with FBNIC_FW (diff) | |
| download | kernel-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
