From: Lee Duncan <lduncan@suse.com>
To: Lee Duncan <leeman.duncan@gmail.com>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Hannes Reinecke <hare@suse.de>, stable@vger.kernel.org
Subject: Re: [PATCH] fnic: fixup patch to resolve stack frame issues
Date: Tue, 26 Jan 2021 19:17:55 -0800 [thread overview]
Message-ID: <31165152-290b-ce04-03b7-ab3d63ea0e93@suse.com> (raw)
In-Reply-To: <20210127012124.22241-1-leeman.duncan@gmail.com>
On 1/26/21 5:21 PM, Lee Duncan wrote:
> From: Hannes Reinecke <hare@suse.de>
>
> Commit 42ec15ceaea7 fixed a gcc issue with unused variables, but
> introduced errors since it allocated an array of two u64-s but
> then used more than that. Set the arrays to the proper size.
>
> Fixes: 42ec15ceaea74b5f7a621fc6686cbf69ca66c4cf
> Cc: stable@vger.kernel.org
> Signed-off-by: Hannes Reinecke <hare@suse.de>
> Signed-off-by: Lee Duncan <lduncan@suse.com>
> ---
> drivers/scsi/fnic/vnic_dev.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/scsi/fnic/vnic_dev.c b/drivers/scsi/fnic/vnic_dev.c
> index 5988c300cc82..d29999064b89 100644
> --- a/drivers/scsi/fnic/vnic_dev.c
> +++ b/drivers/scsi/fnic/vnic_dev.c
> @@ -697,7 +697,7 @@ int vnic_dev_hang_notify(struct vnic_dev *vdev)
>
> int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr)
> {
> - u64 a[2] = {};
> + u64 a[ETH_ALEN] = {};
> int wait = 1000;
> int err, i;
>
> @@ -734,7 +734,7 @@ void vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast,
>
> void vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr)
> {
> - u64 a[2] = {};
> + u64 a[ETH_ALEN] = {};
> int wait = 1000;
> int err;
> int i;
> @@ -749,7 +749,7 @@ void vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr)
>
> void vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr)
> {
> - u64 a[2] = {};
> + u64 a[ETH_ALEN] = {};
> int wait = 1000;
> int err;
> int i;
>
This may not be correct. Please do not review this yet. I will re-submit
once I clear up my confusion.
--
Lee Duncan
next prev parent reply other threads:[~2021-01-27 6:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-27 1:21 [PATCH] fnic: fixup patch to resolve stack frame issues Lee Duncan
2021-01-27 3:17 ` Lee Duncan [this message]
2021-01-27 7:46 ` Greg KH
2021-01-27 14:53 ` Lee Duncan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=31165152-290b-ce04-03b7-ab3d63ea0e93@suse.com \
--to=lduncan@suse.com \
--cc=hare@suse.de \
--cc=leeman.duncan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox