Re: [PATCH v3] eeprom: at24: fix memory corruption race condition

From: Bartosz Golaszewski
Date: Tue Apr 23 2024 - 04:15:32 EST


From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>


On Mon, 22 Apr 2024 17:43:36 +0000, Daniel Okazaki wrote:
> If the eeprom is not accessible, an nvmem device will be registered, the
> read will fail, and the device will be torn down. If another driver
> accesses the nvmem device after the teardown, it will reference
> invalid memory.
>
> Move the failure point before registering the nvmem device.
>
> [...]

Applied, thanks!

[1/1] eeprom: at24: fix memory corruption race condition
commit: f42c97027fb75776e2e9358d16bf4a99aeb04cf2

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>