[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180810.191308.115506586665540539.davem@davemloft.net>
Date: Fri, 10 Aug 2018 19:13:08 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: michael.chan@...adcom.com
Cc: netdev@...r.kernel.org, dan.carpenter@...cle.com,
vasundhara-v.volam@...adcom.com
Subject: Re: [PATCH net-next v2] bnxt_en: Fix strcpy() warnings in
bnxt_ethtool.c
From: Michael Chan <michael.chan@...adcom.com>
Date: Fri, 10 Aug 2018 18:24:43 -0400
> From: Vasundhara Volam <vasundhara-v.volam@...adcom.com>
>
> 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@...cle.com>
> Signed-off-by: Vasundhara Volam <vasundhara-v.volam@...adcom.com>
> Signed-off-by: Michael Chan <michael.chan@...adcom.com>
That seems to make them all go away, applied, thanks!
Powered by blists - more mailing lists