[MOUNTMGR] Properly validate input buffer size