net/smc: add error handling for get_user()