kopia lustrzana https://github.com/OpenRTX/OpenRTX
linux: nvmem: fixed wrong bound check in nvm_getDesc
rodzic
280d5ad350
commit
ac6127684a
|
@ -152,7 +152,7 @@ void nvm_terminate()
|
||||||
|
|
||||||
const struct nvmDescriptor *nvm_getDesc(const size_t index)
|
const struct nvmDescriptor *nvm_getDesc(const size_t index)
|
||||||
{
|
{
|
||||||
if(index >= 0)
|
if(index > 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return &stateNvm;
|
return &stateNvm;
|
||||||
|
|
Ładowanie…
Reference in New Issue