RH361: Fixed Ch10.1 Sample misc device driver

Prevent general protection faults and use
list_for_each_entry_safe() instead.
Also added a duff read() implementation.