If a user passes a ptr that was allocated by hipMalloc(), the offset is guaranteed to be 0 and NULL may be passed as the offset parameter. We shouldn't return an error in this case. Change-Id: I4a8d645121e5a17d5e2861a0629356a3599de9ee