[PATCH] drm: Check if the allocation has succeeded before dereferencing newmode