linux: nvmem: fixed wrong bound check in nvm_getDesc

pull/247/merge
Silvano Seva 2025-07-11 20:10:34 +02:00
rodzic 280d5ad350
commit ac6127684a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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