lkml.org 
[lkml]   [2023]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net 0/2] liquidio: Fix an off by one in octeon_download_firmware()
Date
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

\
 
 \ /
  Last update: 2023-10-22 23:01    [W:0.205 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site