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