diff options
author | Vasundhara Volam <vasundhara-v.volam@broadcom.com> | 2018-08-10 18:24:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-10 19:12:18 -0700 |
commit | 8605212a7c37b5d786544263bae5e697c1aaaa16 (patch) | |
tree | 718e1ee7117c29d99d341185000a54581c158912 /net/rxrpc | |
parent | 0520344cdb1efa7c6404168b66f8dd0b1fe5face (diff) | |
download | blackbird-op-linux-8605212a7c37b5d786544263bae5e697c1aaaa16.tar.gz blackbird-op-linux-8605212a7c37b5d786544263bae5e697c1aaaa16.zip |
bnxt_en: Fix strcpy() warnings in bnxt_ethtool.c
This patch fixes following smatch warnings:
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c:2826 bnxt_fill_coredump_seg_hdr() error: strcpy() '"sEgM"' too large for 'seg_hdr->signature' (5 vs 4)
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c:2858 bnxt_fill_coredump_record() error: strcpy() '"cOrE"' too large for 'record->signature' (5 vs 4)
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c:2879 bnxt_fill_coredump_record() error: strcpy() 'utsname()->sysname' too large for 'record->os_name' (65 vs 32)
Fixes: 6c5657d085ae ("bnxt_en: Add support for ethtool get dump.")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc')
0 files changed, 0 insertions, 0 deletions