rmidevice: Check return value of Read(), Write()
rmidevice: Check return value of Read(), Write()

Addresses security concern:

All users of Read and Write fail to check for return value being equal
to desired write size (only look for <0, not a size >= 0 but less than
expected). This can lead to all kinds of corruption or overflows.

adlr/rmi4utils,adlr/rmi4utils