Skip to content

liquidio: Fix an off by one in octeon_download_firmware()

Christophe JAILLET kernel-janitors lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2liquidio: Fix an off by one in octeon_download_firmware()drivers/net/ethernet/cavium/liquidio/octeon_console.c+2 -20 replies
2/2liquidio: Simplify octeon_download_firmware()drivers/net/ethernet/cavium/liquidio/octeon_console.c+5 -83 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] liquidio: Fix an off by one in octeon_download_firmware()

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(-)
Signature · 1 line
2.34.1