We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 914ee6e commit ee20c69Copy full SHA for ee20c69
drivers/gpu/drm/adp/adp_drv.c
@@ -232,9 +232,9 @@ static struct drm_plane *adp_plane_new(struct adp_drv_private *adp)
232
ALL_CRTCS, &adp_plane_funcs,
233
plane_formats, ARRAY_SIZE(plane_formats),
234
NULL, DRM_PLANE_TYPE_PRIMARY, "plane");
235
- if (!plane) {
+ if (IS_ERR(plane)) {
236
drm_err(drm, "failed to allocate plane");
237
- return ERR_PTR(-ENOMEM);
+ return plane;
238
}
239
240
drm_plane_helper_add(plane, &adp_plane_helper_funcs);
0 commit comments