lkml.org 
[lkml]   [2022]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v3 2/9] brcmfmac: firmware: Allocate space for default boardrev in nvram
    On Mon, Jan 17, 2022 at 4:30 PM Hector Martin <marcan@marcan.st> wrote:
    >
    > If boardrev is missing from the NVRAM we add a default one, but this
    > might need more space in the output buffer than was allocated. Ensure
    > we have enough padding for this in the buffer.

    Do you know this ahead (before allocation happens)?
    If yes, the size change should happen conditionally.

    Alternatively, krealloc() may be used.

    --
    With Best Regards,
    Andy Shevchenko

    \
     
     \ /
      Last update: 2022-01-19 22:38    [W:4.169 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site