Re: [PATCHv2] i2c: slave-eeprom: Make it possible to pre-load eeprom data
From: Wolfram Sang
Date: Fri Apr 24 2020 - 07:13:40 EST
On second look, two questions:
> + if (!error) {
> + int ret = request_firmware_into_buf(&fw, eeprom_data, &client->dev,
> + eeprom->buffer, size);
> + if (ret)
> + return ret;
Aren't we leaking 'fw' here?
Also, do we need 'error' and 'ret'? Can't we reuse one of them?
> + release_firmware(fw);
Attachment:
signature.asc
Description: PGP signature