diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2023-06-13 13:06:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-09-19 12:20:24 +0200 |
commit | 4aade6c9100a3537788b6a9c7ac481037d19efdf (patch) | |
tree | 0eeebede5b0ae67a3fa01c0ba7a6783d2d28124e | |
parent | db8b5a2254c33ae0d62d9fa9bdf8a4932a4cf46b (diff) | |
download | linux-stable-4aade6c9100a3537788b6a9c7ac481037d19efdf.tar.gz linux-stable-4aade6c9100a3537788b6a9c7ac481037d19efdf.tar.bz2 linux-stable-4aade6c9100a3537788b6a9c7ac481037d19efdf.zip |
fbdev/ep93xx-fb: Do not assign to struct fb_info.dev
commit f90a0e5265b60cdd3c77990e8105f79aa2fac994 upstream.
Do not assing the Linux device to struct fb_info.dev. The call to
register_framebuffer() initializes the field to the fbdev device.
Drivers should not override its value.
Fixes a bug where the driver incorrectly decreases the hardware
device's reference counter and leaks the fbdev device.
v2:
* add Fixes tag (Dan)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 88017bda96a5 ("ep93xx video driver")
Cc: <stable@vger.kernel.org> # v2.6.32+
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-15-tzimmermann@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/video/fbdev/ep93xx-fb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/fbdev/ep93xx-fb.c b/drivers/video/fbdev/ep93xx-fb.c index ba33b4dce0df..04aac2ad5382 100644 --- a/drivers/video/fbdev/ep93xx-fb.c +++ b/drivers/video/fbdev/ep93xx-fb.c @@ -474,7 +474,6 @@ static int ep93xxfb_probe(struct platform_device *pdev) if (!info) return -ENOMEM; - info->dev = &pdev->dev; platform_set_drvdata(pdev, info); fbi = info->par; fbi->mach_info = mach_info; |