linux: nvmem: fixed wrong bound check in nvm_getDesc

This commit is contained in:
Silvano Seva 2025-07-11 20:10:34 +02:00
parent 280d5ad350
commit ac6127684a
1 changed files with 1 additions and 1 deletions

View File

@ -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;