diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-15 09:48:04 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-02-15 09:48:04 +0000 |
commit | 7d50906d2a535f304ca4861d06a1d50585c62d50 (patch) | |
tree | 159bdcd61293ddd15543f4d371b1d63eb7600c22 | |
parent | 5a636ab1e5c80419c838578df7637ab93d287f86 (diff) |
return non-zero if drm_fb_helper_alloc_info() fails in rkdrm_fb_probe()
found by smatch
-rw-r--r-- | sys/dev/fdt/rkdrm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdt/rkdrm.c b/sys/dev/fdt/rkdrm.c index e4445706583..16f4374cad7 100644 --- a/sys/dev/fdt/rkdrm.c +++ b/sys/dev/fdt/rkdrm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkdrm.c,v 1.20 2024/01/19 17:51:15 kettenis Exp $ */ +/* $OpenBSD: rkdrm.c,v 1.21 2024/02/15 09:48:03 jsg Exp $ */ /* $NetBSD: rk_drm.c,v 1.3 2019/12/15 01:00:58 mrg Exp $ */ /*- * Copyright (c) 2019 Jared D. McNeill <jmcneill@invisible.ca> @@ -528,7 +528,7 @@ rkdrm_fb_probe(struct drm_fb_helper *helper, struct drm_fb_helper_surface_size * info = drm_fb_helper_alloc_info(helper); if (IS_ERR(info)) { DRM_ERROR("Failed to allocate fb_info\n"); - return error; + return PTR_ERR(info); } info->par = helper; return 0; |