Add a missing parameter check to FileChannel.

If we were rewriting this from scratch, we might want to leave these kinds of
checks to the kernel and just rethrow an appropriate exception when the kernel
complains. But for now, let's at least be consistent.

Change-Id: I31c4d13d033c8f46a632622f1a2ce3f44a6c5701
1 file changed