netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] liquidio: Fix an off by one in octeon_download_firmware()
@ 2023-10-22 20:59 Christophe JAILLET
  2023-10-22 20:59 ` [PATCH net 1/2] " Christophe JAILLET
  2023-10-22 20:59 ` [PATCH net 2/2] liquidio: Simplify octeon_download_firmware() Christophe JAILLET
  0 siblings, 2 replies; 6+ messages in thread
From: Christophe JAILLET @ 2023-10-22 20:59 UTC (permalink / raw)
  To: dchickles, sburla, fmanlunas, davem, edumazet, kuba, pabeni,
	veerasenareddy.burru
  Cc: felix.manlunas, netdev, linux-kernel, kernel-janitors,
	Christophe JAILLET

This serie fixes an off by one related to the usage of strncat() in
octeon_download_firmware().

The first patch is a minimal fix.

The 2nd one is an attempt to remove strncat() which is used in a wrong way
most of the time.
It removes the need of an intermediate buffer but may need further discussions.
(i.e. is it a good idea to update h->bootcmd directly?)

Both patches are compile tested only.

Christophe JAILLET (2):
  liquidio: Fix an off by one in octeon_download_firmware()
  liquidio: Simplify octeon_download_firmware()

 .../net/ethernet/cavium/liquidio/octeon_console.c   | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-10-24 12:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-22 20:59 [PATCH net 0/2] liquidio: Fix an off by one in octeon_download_firmware() Christophe JAILLET
2023-10-22 20:59 ` [PATCH net 1/2] " Christophe JAILLET
2023-10-22 20:59 ` [PATCH net 2/2] liquidio: Simplify octeon_download_firmware() Christophe JAILLET
2023-10-24  0:29   ` Jacob Keller
2023-10-24 11:11   ` Paolo Abeni
2023-10-24 12:10     ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).