Correct the check for errors from proc_rwmem().

MFC after:	2 weeks