PTR_ERR should be called before its argument is cleared.