added dereferencing of user pointer to protect from page faults during I/O operation