[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200311144416.624c979c@kicinski-fedora-PC1C0HJN>
Date: Wed, 11 Mar 2020 14:44:16 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Takashi Iwai <tiwai@...e.de>
Cc: netdev@...r.kernel.org, "David S . Miller" <davem@...emloft.net>,
oss-drivers@...ronome.com
Subject: Re: [PATCH 4/7] nfp: Use scnprintf() for avoiding potential buffer
overflow
On Wed, 11 Mar 2020 09:37:42 +0100 Takashi Iwai wrote:
> @@ -680,7 +680,7 @@ static int enable_bars(struct nfp6000_pcie *nfp, u16 interface)
> bar->iomem = ioremap(nfp_bar_resource_start(bar),
> nfp_bar_resource_len(bar));
> if (bar->iomem) {
> - msg += snprintf(msg, end - msg,
> + msg += scnprintf(msg, end - msg,
> "0.%d: Explicit%d, ", 4 + i, i);
Thanks for the patches! One nit pick - please adjust the continuation
lines so it starts on the column after the opening bracket (other
patches have the same problem).
You can try running scripts/checkpatch --strict on your patches, it
should catch these.
Powered by blists - more mailing lists