> - Modify lock_user() so that it automatically does access_ok() and > returns NULL if access_ok() fails.
You'll also need to augment all lock_user calls to indicate whether the buffer needs to be writable. Currently this information is not available until unlock_user is called. Paul