mount: improve handling mounts table size
authorRafał Miłecki <rafal@milecki.pl>
Thu, 8 Feb 2018 13:50:19 +0000 (14:50 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 12 Feb 2018 09:52:16 +0000 (10:52 +0100)
This is static array with a size set to MAX_MOUNTED. Old code:
1) Was never using the last table entry/row
2) Was logging the same message for every mount entry above limit

This fixes off-by-one, moves limit check to the proper place and uses
"break" when needed.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>

No differences found