Patch "drm/tiny: correctly print `struct resource *` on error" has been added to the 6.5-stable tree
Subsystems (2)
[email protected]
AppliedThis is a note to let you know that I've just added the patch titled
drm/tiny: correctly print struct resource * on error
to the 6.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-tiny-correctly-print-struct-resource-on-error.patch
and it can be found in the queue-6.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From c1165df2be2fffe3adeeaa68f4ee4325108c5e4e Mon Sep 17 00:00:00 2001
From: Joey Gouly <[email protected]>
Date: Tue, 10 Oct 2023 18:46:52 +0100
Subject: drm/tiny: correctly print struct resource * on error
From: Joey Gouly <[email protected]>
commit c1165df2be2fffe3adeeaa68f4ee4325108c5e4e upstream.
The res variable is already a struct resource *, don't take the address of it.
Fixes incorrect output:
simple-framebuffer 9e20dc000.framebuffer: [drm] *ERROR* could not acquire memory range [??? 0xffff4be88a387d00-0xfffffefffde0a240 flags 0x0]: -16
To be correct:
simple-framebuffer 9e20dc000.framebuffer: [drm] *ERROR* could not acquire memory range [mem 0x9e20dc000-0x9e307bfff flags 0x200]: -16
--- drivers/gpu/drm/tiny/simpledrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tiny/simpledrm.c +1 -1
@@ -745,7 +745,7 @@ static struct simpledrm_device *simpledrm_device_create(struct drm_driver *drv, ret =devm_aperture_acquire_from_firmware (dev, res->start,resource_size (res));if (ret) { -drm_err (dev,"could not acquire memory range %pr: %d\n" , &res, ret); +drm_err (dev,"could not acquire memory range %pr: %d\n" , res, ret);return ERR_PTR (ret); }
Signature · 7 lines
2.42.0 Patches currently in stable-queue which might be from [email protected] are queue-6.5/drm-tiny-correctly-print-struct-resource-on-error.patch