[PATCH v2] gpu/drm: fix potential memleak in error branch