qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 2/2] hw/pflash: implement update buffer for block writes


From: Richard Henderson
Subject: Re: [PATCH v2 2/2] hw/pflash: implement update buffer for block writes
Date: Wed, 10 Jan 2024 08:40:28 +1100
User-agent: Mozilla Thunderbird

On 1/8/24 23:53, Philippe Mathieu-Daudé wrote:
@@ -818,6 +867,9 @@ static void pflash_cfi01_realize(DeviceState *dev, Error 
**errp)
      pfl->cmd = 0x00;
      pfl->status = 0x80; /* WSM ready */
      pflash_cfi01_fill_cfi_table(pfl);
+
+    pfl->blk_bytes = g_malloc(pfl->writeblock_size);

Do you need an unrealize to free?


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]