fix for code static analyze

It's fix for issue reported by code statuc analyze,
the index of array should be less than maxDirEntries,
being equal to maxDirEntries should also be illegal.

Signed-off-by: Chen Yugang <yugang.chen@linux.intel.com>
Change-Id: Ib83b06262bb33cf6c76b919ce0d6c2fa34a82366
1 file changed