lkml.org 
[lkml]   [2021]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH][next] scsi: mpt3sas: Replace unnecessary dynamic allocation with a static one
Date
On Wed, 10 Mar 2021 17:59:51 -0600, Gustavo A. R. Silva wrote:

> Dynamic memory allocation isn't actually needed and it can be
> replaced by statically allocating memory for struct object
> io_unit_pg3 with 36 hardcoded entries for its GPIOVal array.
>
> Also, this helps the with ongoing efforts to enable -Warray-bounds
> by fixing the following warning:
>
> [...]

Applied to 5.13/scsi-queue, thanks!

[1/1] scsi: mpt3sas: Replace unnecessary dynamic allocation with a static one
https://git.kernel.org/mkp/scsi/c/a1c4d7741323

--
Martin K. Petersen Oracle Linux Engineering

\
 
 \ /
  Last update: 2021-03-19 04:49    [W:0.085 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site