Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2023 11:50:59 +0300
From:      titus <titus@edc.ro>
To:        Emmanuel Vadot <manu@bidouilliste.com>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   nvmem_get_cell_len
Message-ID:  <66F75D3F-B8DE-4756-AA65-D403F1BA58E0@edc.ro>

next in thread | raw e-mail | index | archive | help
Hello,

in /sys/dev/extres/nvmem/nvmem.c
nvmem_get_cell_len can=E2=80=99t properly return an error or a valid =
size
probably the size should be returned via a pointer to size_t arg and =
return 0 on success
the function does not seem to be used anywhere (13.2) so it should be =
easy to change

also why is it an error in nvmem_read_cell_by_idx if the buflen arg is =
larger than the actual cell size ? (the same is in aw_sid too)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?66F75D3F-B8DE-4756-AA65-D403F1BA58E0>