[PATCH v3] drm/amd: fix potential memleak in err branch